Getting vScroll movement of a field scrollbar

James Hurley jhurley0305 at sbcglobal.net
Mon Dec 10 18:05:00 EST 2007


I have a field with button superimposed on the text.

I would like the buttons to scroll with the field.

I set the field script to:

local tStart

on mouseDown
    put the vScroll of me into tStart
end mouseDown


on scrollbarDrag newValue
   put tStart & comma &  newValue into msg box
end scrollbarDrag

The idea was to get the vertical movement of the scrollbar and move  
the buttons accordingly.

But the field's scrollbar does not appear to get the  mouseDown  
message and so I don't get the  tStart variable

How do I get the initial position  of the scrollbar?

Jim Hurley



More information about the use-livecode mailing list