Keeping a field scroll at the bottom as lines come in

Jan Schenkel janschenkel at yahoo.com
Sun Jan 25 15:38:51 EST 2004


--- Rob Beynon <r.beynon at liv.ac.uk> wrote:
> Greetings, My first post, and a naive one, I
> suspect..
> 
> I am using an interactive mode to send a line of
> text to the end of a
> field ('after') which is visible. Then, as the field
> fills, it doesn't
> scroll to show the last line, it just moves the
> thumb upwards.
> 
> I'd really like to see the last line entered,
> irrespective of the
> length of the field. Can this be done?
> 
> Thanks
> 
> 
> -- 
> All best wishes,
> Rob
> 

Hi Rob,

Welcome to the Revolution :-)

Your question is not naive, and the solution is not
too hard either ; here's what I usually use to make a
field scroll to the bottom while appending :
--
  put return & "Yet another line" after field "Foobar"
  set the scroll of field "Foobar" to \
      the formattedHeight of field "Foobar"
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


More information about the use-livecode mailing list