relative scrolling in a group

Jeanne A. E. DeVoto jeanne at runrev.com
Sun Nov 17 05:16:11 EST 2002


At 5:25 PM -0800 11/11/02, Alex Rice wrote:
>I have complex group with a vertical scrollbar. How can I scroll to
>make a particular object visible, instead of hardcoding the vscroll
>pixels like this
>
>set the vscroll of grp "reportGroup" to 475
>
>I want to do something like this
>
>set the vscroll of grp "reportGroup" to the location of fld
>"myReportHeader"

Try this:

  set the vScroll of group "reportGroup" to \
     (the top of field "myReportHeader" - the top of group "reportGroup")

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list