> I am trying to program a universal pop up menu. At the moment I intend to
> make it out of 4 lines of single text cast member members. The contents of
> the menu will be updated in a list and from there read into the text cast
> members. Each text cast member will have a script that makes the program
> jump to a specific part of the movie. The content of the text cast members
> being variable, I would like the width of the bounding box of the text cast
> member to be horizontally adjustable to the length of the text. I need this
> because I have to position the next text cast member just after the
> preceding one.
By "after", do you mean to the right or below?
> The property #adjust of the text cast member's bounding box
> seems to adjust the bounding box only vertically, but not horizontally. I
> could concatenate just one string out of the several text elements, but then
> I cannot use each item as starting point for a jump.
Sure you can. Use the mouseline if it's a vertical layout, or drop in a
seperator (like a bullet) for a horizontal layout and make it the the
itemDelimiter. You will still probably want to adjust the width of the main
text box to make it pretty, in which case, you set the text member's rect to
a pretty wide rect, then use charPosToLoc(member "textmember", the number of
chars in member("textmember").text).locH to calculate the width you want.
Note that margins and kerning will throw things off a bit.
-Kurt
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]