Hi,
i see the trick... thanks.  Its about #text by the way...

Fabrice

Alex da Franca heeft op dinsdag 24 september 2002 om 10:11 het volgende 
geschreven:

> At 9:03 Uhr +0200 24.09.2002, Fabrice  Closier wrote:
>> Hi all,
>> i wonder if there is a way to count visible lines into a textfield.
>
> textfield ?
> somewhat misleading.
> #text OR #field ?
>
> in case of #text you can use the charPosToLoc() function and search for 
> the first char, which is not within the bounds of your target rect. 
> Since director (unfortunately) wraps only whole words (I don't remember 
> the english word for 'silbentrennung' at the moment), you will only 
> need to check the first char of every word. if performance is critical 
> you should search async (?), beginning from the middle of the text and 
> divide the text depending on the result of 
> charPosToLoc().inside(targetrect)
> --
>   |||
> a�ex
>  --
> [To remove yourself from this list, or to change to digest mode, go to 
> http://www.penworks.com/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!]
>

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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!]

Reply via email to