How script the widget Switchbutton ?

Klaus major-k klaus at major-k.de
Tue Oct 27 10:26:02 EDT 2015


Bonjour Ludovic,

> Am 27.10.2015 um 15:02 schrieb Ludovic THEBAULT <ludovic.thebault at laposte.net>:
> 
> Hello,
> 
> I play with Livecode 8 dp7. Widget are cool but how use it ? 
> If i put a switchbutton on my stack and put this script :
> on mouseup
> answer the hilite of me
> end mouseup
> nothing happen.

Because this is a widget and not a „normal“ button!

> I cannot find any example in the doc.  

I did, try harder! :-)

…
## On/Off
set the switchIsOn of widget 1 to NOT the switchIsOn of widget 1
…

> Thanks

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list