3-way slider control

Sean Cole (Pi) sean at pidigital.co.uk
Wed May 26 23:24:25 EDT 2021


I made a multiway one

https://forums.livecode.com/viewtopic.php?f=7&t=35903&p=205657

On Wed, 26 May 2021 at 20:45, Paul Dupuis via use-livecode <
use-livecode at lists.runrev.com> wrote:

> :-)
>
> 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 pNewPosition
> >>   set the tooltip of me to "Text style changes will be applied
> >> to"&&(item pNewPosition+1 of tToolTip)
> >     set the enabled of fld "CiC_Label" to (pNewPosition=0 or
> > pNewPosition=1)
> >     set the enabled of fld "Src_Label" to (pNewPosition=1 or
> > pNewPosition=2)
> > end scrollbarDrag
> >
> > or, of course,
> >
> >    set the enabled of fld "CiC_Label" to (pNewPosition <= 1)
> >    set the enabled of fld "Src_Label" to (pNewPosition >= 1)
> >
> > All a matter of personal preference :-)
> >
> > Alex.
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list