Page 1 of 1

Example of slider orient setting

Posted: Fri Sep 22, 2017 4:23 pm
by rbytes
It would be nice to include orient in the slider example. I can't figure out the exact wording to make it work.
My guess was s.orient(#.up), but that isn't right.

Re: Example of slider orient setting

Posted: Fri Sep 22, 2017 4:37 pm
by Mr. Kibernetik
Ok.

s.orient = #.up

because orient is a value, not a function

Re: Example of slider orient setting

Posted: Fri Sep 22, 2017 4:45 pm
by Mr. Kibernetik
This is a new version of slider example:

Code: Select all

sh,sv = #.slider
sh.x = 200
sh.y = 100

sv.x = 250
sv.y = 150
sv.orient = #.down

#.show(sh,sv)

>
  ? #.act(sh), #.output("horizontal: ",sh.value)
  ? #.act(sv), #.output("vertical: ",sv.value)
<

Re: Example of slider orient setting

Posted: Fri Sep 22, 2017 5:21 pm
by rbytes
Thanks. I will try to find a few unoccupied brain cells where I can store this info! :D