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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode