[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] setting slider position



perfect!  do you use the defer method in a routine to force the function to use AppClock?
thanks!
jeremy
On Aug 26, 2005, at 1:12 AM, Tom Tlalim wrote:

hi jeremy,
~slider.value = 5

(
and if you're calling it from a routine don't forget to defer...
{~slider.value = 5}.defer
)

grtz,
tom

On 26 Aug 2005, at 07:31, Jeremy Zuckerman wrote:


is there a way to change the position of a slider?
something like this? :

(
var w, a;
w = SCWindow("presetTest", Rect(300, 300, 600, 600));
w.view.decorator = a = FlowLayout(w.view.bounds);
~slider = EZSlider(w, 400@40, "slider", ControlSpec(1, 10, \lin, 1));
a.nextLine;

w.front;
)

~slider.setPosition(1); //set slider position and numberBox to 1

thanks, 
jeremy

_______________________________________________
sc-users mailing list



..................
www.tomtlalim.tk
www.tangiercluj.tk
www.club-mtk.tk
..................
_______________________________________________
sc-users mailing list