Page 1 of 1
Slider question
Posted: Sun Dec 14, 2008 1:42 am
by hamlynart
Hi Folks,
Stupid question how do I get the state of a slider? I thought this might work:
Code: Select all
on mouseMove
put the value of me into theData
end mouseMove
thanks in advance
Jim H
Posted: Sun Dec 14, 2008 2:05 am
by SparkOut
A slider is a form of scrollbar object, so you should check the thumbposition on scrollbarDrag
Code: Select all
on scrollbarDrag
put the thumbPosition of me into theData
end scrollbarDrag
HTH
Posted: Sun Dec 14, 2008 11:09 am
by hamlynart
Great, Thankyou.
I should have known that, but I couldn't find any documentation or examples anywhere.
Posted: Sun Dec 14, 2008 12:27 pm
by Klaus
Hi friends,
there is a parameter that gets send with "scrollbardrag" ->tValue_or_whatever_you_name_it!
Code: Select all
on scrollbardrag tValue_or_whatever_you_name_it
put tValue_or_whatever_you_name_it into fld 1
end scrollbardrag
Best
Klaus
Posted: Sun Dec 14, 2008 3:02 pm
by SparkOut
Oh duh! yes of course! I knew that, but... I guess I got caught by answering "in the style of the question" instead of thinking. Sorry!
(Not that it won't work, the way I said - but the syntax is nicer this way.)