How can I detect scrolling in a field?
graham.samuel at wanadoo.fr
Fri Mar 25 17:23:50 CST 2005
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
set the VScroll of field "F2" to the Vscroll of me
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?
Graham Samuel / The Living Fossil Co. / UK and France
More information about the use-livecode