Scroll fld

Jan Schenkel janschenkel at
Wed Oct 8 03:39:01 EDT 2003

--- Yves COPPE <yvescoppe at> wrote:
> Hi,
> I have a fld named "DATA" on a cd "Viewer"
> I want a handler in the preopencard status so that
> the fld "DATA" 
> scrolls automatically at the end of the text
> Thus when the cd is open, the fld appears scrolled
> at the end of the 
> text of the "data" fld
> Can anyone help me for writing this little code ?
> thank you.
> Greetings.
> Yves COPPE

Bonjour Yves,

This ought to do it :
on preOpenCard
  set the scroll of fld "Data" to \
      the formattedHeight of fld "Data"
end preOpenCard
If you set the scroll to something larger than the
maximum value, it automatically changes it to that

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!?
The New Yahoo! Shopping - with improved product search

More information about the Use-livecode mailing list