IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19206 - 12/13/05 11:11 AM Snapping to text object with PPTalk after
Farid Offline
OL User

Registered: 05/15/03
Posts: 100
Loc: Montreal
Hi,
I have 2 text objects, with the first one having presstalk code after. The PPtalk code generates a variable number of lines that are concatenated to the end of the static text (after the last line).
The 2nd text object has only static text. I want it to snap to the 1st text object. But it is snapping to the last line of static text, overlapping with the PPtalk lines.
So for ex. supposing text1 object has 3 lines: 1 staic lines and 2 pptalk lines. Text2 object is snapping to line 1 of text1 instead of line3.
Is there a way to modify the text object length in the PPtalk code assuming that I can calculate the number of lines generated.

Thanks,

Farid

Top
#19207 - 12/14/05 11:23 AM Re: Snapping to text object with PPTalk after
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Having multiple lines of text does not change the object's size, and snapping is based on the object's size. What you could do is convert your text object to PressTalk object, and make it so everytime you show a line, you increment the height of the object.

Your code should in the PlanetPress Talk Code, and there shouldn't be a need to place the code in the PressTalk After property.

Regards,
Rapha

Top
#19208 - 12/14/05 12:23 PM Re: Snapping to text object with PPTalk after
Farid Offline
OL User

Registered: 05/15/03
Posts: 100
Loc: Montreal
Thanks for the info.
It worked even from the PPTalk after property. I added for every line generated with PPTalk the command:
&height:=&height+0.1667

Thanks again.

Farid

Top


Moderator:  cosimo, OL Newsgroup Support