Example of slider orient setting

Post Reply
User avatar
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: Canada
Contact:

Example of slider orient setting

Post 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.
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Example of slider orient setting

Post by Mr. Kibernetik »

Ok.

s.orient = #.up

because orient is a value, not a function

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Example of slider orient setting

Post 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)
<

User avatar
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: Canada
Contact:

Re: Example of slider orient setting

Post by rbytes »

Thanks. I will try to find a few unoccupied brain cells where I can store this info! :D
The only thing that gets me down is gravity...

Post Reply