3-way slider control
Alex Tweedly
alex at tweedly.net
Wed May 26 15:36:06 EDT 2021
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.
More information about the use-livecode
mailing list