3-way slider control
Paul Dupuis
paul at researchware.com
Wed May 26 15:45:22 EDT 2021
:-)
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
More information about the use-livecode
mailing list