automatic scrolling a field to the bottom when Text is entered
Sarah
sarahr at genesearch.com.au
Mon Jan 20 21:02:01 EST 2003
How about trapping the keyUp message (if you want to scroll as the user
types) or closeField / exitField if you just want to scroll when they
have finished. Note: if they are typing into the field you want
scrolled, it will scroll automatically when needed, indeed if they are
typing in the middle and you scroll to the end, they might get a bit
upset :-)
The actual script I use for scrolling is:
set the vScroll of field "My Field" to the number of lines in field "My
Field" \
* the effective textHeight of field "My Field"
You have to use "effective" because the text size may only be inherited
and may not have been set.
Cheers,
Sarah
On Tuesday, January 21, 2003, at 07:27 am, Bjrnke von Gierke wrote:
> I already did this once. It included an "oldText" property, a "send to
> me in 1 second" handler and some calculating of the "formated height".
> but I do not want to do it like that again, there must be a simpler
> solution to scroll a field all the way down when text gets entered
> (whether by hand or by script)
>
> thanks
>
> Bjrnke
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list