HI,
sorry for my bad english,
Who knows how to create a script like this?
I added in attirbute holder a slide and 2 bottoms
I would like that using the first bottom the slide go to value 0 and if I clik the second bottom the slide go to value 100 without move the slide manually...
How can I do that???
Many thanks!
Lorenzo
By
Comments (2)
Comment policy
One more example
testCA = attributes SlideControls(
parameters test rollout:testroll
(
ctrl1 type:#integer ui:sld
ctrl2 type:#integer ui:spn
)
rollout testroll "MinMax Slide"
(
slider sld "" orient:#horizontal ticks:2 range:[0,1e2,0] width:150
spinner spn "Value:" range:[0,1e2,0]
button btnmin "Min" across:2
button btnmax "Max"
on sld changed val do spn.value = val
on spn changed val do sld.value = val
on btnmin pressed do sld.value = 0
on btnmax pressed do sld.value = 100
)
)
testObj = Dummy name:"CA_Helper"
CustAttributes.add testObj testCA #Unique --BaseObject:false
If something isn't clear just ask...