Scroll multiple fields together

André.Bisseret Andre.Bisseret at inria.fr
Fri Jan 19 03:14:16 EST 2007


Le 19 janv. 07 à 00:18, Sarah Reichelt a écrit :

> On 1/19/07, LunchnMeets at aol.com <LunchnMeets at aol.com> wrote:
>> Hi Everyone,
>>
>> Is there an easy way to keep multiple scrolling fields in  
>> alignment when they
>> are scrolled?
>>
>
> In each field, put a scrollBarDrag handler as follows:
>
> on scrollBarDrag pNewValue
>  set the vScroll of fld "OtherField" to pNewValue
>  set the vScroll of fld "SomeField" to pNewValue
> end scrollbarDrag
>
> pNewValue contains the setting for the scroll of the current field, so
> just apply that to all the others.
>
> Cheers,
> Sarah
> _______________________________________________

Hi,
If you want only one of the fld be controlling the others, you could  
use (in the controlling field script) :

set the vScroll of fld "otherField" to the vScroll of me

Best regards from Grenoble
André 


More information about the use-livecode mailing list