3-way slider control

Curry Kenworthy curry at pair.com
Wed May 26 12:16:46 EDT 2021


Paul:

 > I created a slider with a label on the left and right in a group.
 > The slider is set to min 0, max 2, inc 1 and it's script is:
 > on scrollbarDrag pNewPosition
 > [...]

I like this UI approach! Your script could be shorter.
A 4-liner or 5-liner would be ideal; just eliminate the switch.
(The current code is essentially repeating the same commands 3 times.)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.com/




More information about the use-livecode mailing list