How can I detect scrolling in a field?
MisterX
b.xavier at internet.lu
Fri Mar 25 18:45:50 EST 2005
Hi Graham
It is
on scrollbardrag w
set the scroll of fld 2 to w
..
BUT be carefull if you do the reverse in field 2...
if the scroll of fld 2 is not w then...
that's the safe way or you'll cause another scrollbardrag back and forth
forever (used to work that way and haven't tried lately ;))...
Just remember people use scroll-wheels a lot now so any field should work
for scrolling synchronized fields...
cheers
Xavier
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> graham samuel
> Sent: Saturday, March 26, 2005 00:24
> To: Rev Use List
> Subject: How can I detect scrolling in a field?
>
> I'm sure this is blindingly obvious, but not to me.
>
> If I have a scrolling field (say "F1") with n lines in it,
> and next to it on the same card I have a scrolling field of
> identical size also containing n lines, where each line
> contains information which relates to the same line in the
> other field (say "F2"), what is the easiest way to keep the
> fields in step when the user chooses to scroll one of them?
> In the docs, it says
>
> > When the user clicks in the scroll bar to scroll a field,
> the setting
> > of the field's vScroll property changes automatically.
>
> What it doesn't say is if any message is sent when the user
> uses the mouse to scroll. I thought mouseDown and mouseUp
> would be sent, but if I script
>
> on mouseUp
> set the VScroll of field "F2" to the Vscroll of me end mouseUp
>
> in field F1, I get precisely nothing, and indeed I can show
> that "mouseUp" isn't sent if I click anywhere in the field,
> whether in the scrollbar or not.
>
> What am I doing wrong?
>
> TIA
>
> Graham
>
> ----------------------------------------
> Graham Samuel / The Living Fossil Co. / UK and France
> _______________________________________________
> 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