Get text extent is a TextFormat method

On Mar 29, 2006, at 7:19 PM, Chris Hill wrote:

Yeah, that's what I figured, but if I remember, getTextExtent is a Lingo call for Director?

I'll try doing a line of tokens at a time, and see if I can improve the speed that way.

Cheers
C

Michael Bedar wrote:
I did the same thing a few years ago, and it worked fine. You may run into speed problems if you go over a certain amount of text to scroll however. Instead of using maxscroll, it is a bit faster to use getTextExtent to see if a given line will fit in the text box.. Instead of testing word by word, you can start to make some educated guesses about how many chars will fit in a line, based again on the extent. This way you can make far fewer comparisons. And remember, if you are putting string S into textboxes a,b and c.. there is no need to test anything in c, just dump everything left in.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to