How I Lock the thumbPosition of scrollbar, Is it possible.


Thanks
Shalu
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on scrollbarDrag
wait until the mouse is up
end scrollbarDrag
Code: Select all
local thumbVal
on mouseDown
put the thumbPos of me into thumbVal
end mouseDown
on scrollbarDrag
wait until the mouse is up
set the thumbPos of me to thumbVal
end scrollbarDrag
oops, sorry, I was not really aware of this...dunbarx wrote:Klaus,
When I say I am an expert at coding a load of crap, you cannot expect me to give all my secrets at once, eh?![]()
Or to actually test it?![]()
OK, still ugly, but betterdunbarx wrote:Code: Select all
local thumbVal on mouseDown put the thumbPos of me into thumbVal end mouseDown on scrollbarDrag wait until the mouse is up set the thumbPos of me to thumbVal end scrollbarDrag