Re: 3-way slider control

2021-05-26 Thread Sean Cole (Pi) via use-livecode
I made a multiway one https://forums.livecode.com/viewtopic.php?f=7=35903=205657 On Wed, 26 May 2021 at 20:45, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > :-) > > On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote: > > I'd prefer it like ... > > > > On

Re: 3-way slider control

2021-05-26 Thread J. Landman Gay via use-livecode
On 5/26/21 2:41 PM, Jim Lambert via use-livecode wrote: go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode; This stack contains a group which is a three-state toggle switch. The myState of the group contains its current state which is either "ON","OFF" or "MID" You can

Re: 3-way slider control

2021-05-26 Thread Paul Dupuis via use-livecode
Thank you. On 5/26/2021 3:41 PM, Jim Lambert via use-livecode wrote: go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode; This stack contains a group which is a three-state toggle switch. The myState of the group contains its current state which is either "ON","OFF" or "MID"

Re: 3-way slider control

2021-05-26 Thread Rick Harrison via use-livecode
Cool custom 3 state toggle switch! A little more work, and code but truly a worth-while result. That will make Paul happy for sure! Thanks! Rick > On May 26, 2021, at 3:41 PM, Jim Lambert via use-livecode > wrote: > > go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode; > >

Re: 3-way slider control

2021-05-26 Thread Paul Dupuis via use-livecode
:-) On 5/26/2021 3:36 PM, Alex Tweedly via use-livecode wrote: I'd prefer it like ... On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: What, like this: on scrollbarDrag pNewPosition   local tToolTip = "CiC only,both CiC and Source,Source only"   set the thumbPosition of me to

Re: 3-way slider control

2021-05-26 Thread Jim Lambert via use-livecode
go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode; This stack contains a group which is a three-state toggle switch. The myState of the group contains its current state which is either "ON","OFF" or "MID" You can customize the states' colors by setting the color constants. See

Re: 3-way slider control

2021-05-26 Thread Alex Tweedly via use-livecode
I'd prefer it like ... On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: What, like this: on scrollbarDrag pNewPosition   local tToolTip = "CiC only,both CiC and Source,Source only"   set the thumbPosition of me to pNewPosition   set the tooltip of me to "Text style changes will be

Re: 3-way slider control

2021-05-26 Thread Paul Dupuis via use-livecode
On 5/26/2021 12:16 PM, Curry Kenworthy via use-livecode wrote: 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

Re: 3-way slider control

2021-05-26 Thread Curry Kenworthy via use-livecode
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

Re: 3-way slider control

2021-05-26 Thread Rick Harrison via use-livecode
I thought of this before I saw Paul’s solution: Name the scrollbar: ScrollbarThreeStateButtonValue on mouseUp put the thumbposition of me into ScrollbarThreeStateButtonValue put the round of ScrollbarThreeStateButtonValue into VarScrollbarThreeStateButton2 set the thumbposition of me to

Re: 3-way slider control

2021-05-26 Thread Paul Dupuis via use-livecode
On 5/25/2021 9:08 PM, J. Landman Gay via use-livecode wrote: Regardless, I have decided to use a standard LC slider set to -1,0,+1 with some labels grouped to it. It works like a charm and minimizes the number of graphics/objects and code. I was interested to see that; it's clever, and it does

Re: 3-way slider control

2021-05-25 Thread J. Landman Gay via use-livecode
Regardless, I have decided to use a standard LC slider set to -1,0,+1 with some labels grouped to it. It works like a charm and minimizes the number of graphics/objects and code. I was interested to see that; it's clever, and it does work if you click in the slider bar. But dragging the

Re: 3-way slider control

2021-05-25 Thread Paul Dupuis via use-livecode
Yea, I know I can make my own custom controls and have on numerous occasions. I *MUCH* prefer to use existing controls as I dislike UI coding. To me it is the most tedious part of app development. This google search shows (at least the majority of initial images) a bunch of 2-position

Re: 3-way slider control

2021-05-25 Thread Roger Guay via use-livecode
Nice! I like the idea of this because it gets the readout away from the cursor so that you can read it. Roger > On May 25, 2021, at 11:18 AM, Richmond via use-livecode > wrote: > > Sorry: went a bit bonkers: > > https://forums.livecode.com/viewtopic.php?f=7=35903 > > Richmond. > > On

Re: 3-way slider control

2021-05-25 Thread Richmond via use-livecode
Sorry: went a bit bonkers: https://forums.livecode.com/viewtopic.php?f=7=35903 Richmond. On 25.05.21 20:23, Roger Guay via use-livecode wrote: Ah yes, I knew that but had forgotten it. Thank you, Klaus! Roger On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode wrote: Hi

Re: 3-way slider control

2021-05-25 Thread Roger Guay via use-livecode
Ah yes, I knew that but had forgotten it. Thank you, Klaus! Roger > On May 25, 2021, at 10:11 AM, Klaus major-k via use-livecode > wrote: > > Hi freinds, > > this - ≥ > is a MAC-only character and will throw an error on Windows! > Use/replace with: > <= >> = > <> > for full platform

Re: 3-way slider control

2021-05-25 Thread Rick Harrison via use-livecode
Hi Paul, You can make your own custom controls in LiveCode. Perhaps you just want something more like three radio buttons, or simulate a slider control with buttons and graphics. Give us an example image to help clarify what you want. Thanks, Rick > On May 25, 2021, at 11:38 AM, Paul Dupuis

Re: 3-way slider control

2021-05-25 Thread Klaus major-k via use-livecode
Hi freinds, this - ≥ is a MAC-only character and will throw an error on Windows! Use/replace with: <= >= <> for full platform comatibilty! > Am 25.05.2021 um 19:06 schrieb Roger Guay via use-livecode > : > > Hi Paul, I’m not able to duplicate the error here. Can you tell what control > you

Re: 3-way slider control

2021-05-25 Thread Roger Guay via use-livecode
Hi Paul, I’m not able to duplicate the error here. Can you tell what control you were adjusting? You should be able to achieve what you want by changing the ‘backBar” grc style from roundrect to oval. You might have to play with the code a bit, but it should work. Roger > > Thank you.

Re: 3-way slider control

2021-05-25 Thread Paul Dupuis via use-livecode
Rick and Jacqueline, Thank you for the horizontal slider suggestions. This could suffice for what I need. I was imagining more of the common "circle inside an oval" "switch" control you see on the web and in apps these days. However, beggars can't always be choosers and I the slider works

Re: 3-way slider control

2021-05-24 Thread Roger Guay via use-livecode
And if you need color and stuff, you can download my ScrollbarOmatic under Roger Guay from Sample Stacks. Roger > On May 24, 2021, at 3:28 PM, J. Landman Gay via use-livecode > wrote: > > On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote: >> Hi all, >> I am looking to see if anyone has

Re: 3-way slider control

2021-05-24 Thread J. Landman Gay via use-livecode
On 5/24/21 3:18 PM, Paul Dupuis via use-livecode wrote: Hi all, I am looking to see if anyone has a 3-positions slider control they might be willing to share. I need a control that has a "left, middle, and Right" positions (whatever they are called). Prefer horizontal orientation and

Re: 3-way slider control

2021-05-24 Thread Rick Harrison via use-livecode
Hi Paul, Grab a horizontal slider control. Set the start position to -1 Set the end position to +1 Set the current position to 0 Make it any length you want. If you try clicking on a 1/4 setting it will spring to the next value, giving it the left middle and right positions you want. Let me