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.
Example of slider orient setting
- rbytes
- Posts: 1338
- Joined: Sun May 31, 2015 12:11 am
- My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
- Flag:
- Contact:
Example of slider orient setting
The only thing that gets me down is gravity...
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Example of slider orient setting
Ok.
s.orient = #.up
because orient is a value, not a function
s.orient = #.up
because orient is a value, not a function
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Example of slider orient setting
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)
<
- rbytes
- Posts: 1338
- Joined: Sun May 31, 2015 12:11 am
- My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
- Flag:
- Contact:
Re: Example of slider orient setting
Thanks. I will try to find a few unoccupied brain cells where I can store this info!
The only thing that gets me down is gravity...