spinner update

Hello

I have one spinner :
spinner offs "OFFset frame :" type:#integer range:[1,1000,5]

and I want (not a spinner but I don't know how to do else)to show result of : offs.value*2 for e.g.

spinner xxx "frames :" type:#integer range:[1,1000,offs.value*2]

it is ok, but when I change offs value spinner xxx is not updated.

Can somebody help ?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
titane357's picture

Thanks "le1setreter"

Thanks "le1setreter" (???)
This is exactly what I was looking for !!!!

le1setreter's picture

yes, when you change

yes, when you change spinner1 then the action goes. look here:

 

rollout testRollout "test" width:180 height:50
(
spinner offs "OFFset frame :" type:#integer range:[1,1000,5]
spinner offFrames "frames :" type:#integer range:[1,1000,10]

on offs changed val do(
-- action in here
offFrames.value = val*2
print val*2
) --end on

)
createdialog testRollout

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.