Hi Ludovic, 

If when you look at the property inspector for each widget, you will see what 
options are available (basic TAB - which shows the house icon)

In the case of the Switch,  you can see a property for Switch on (hover mouse 
over and it will show you SwitchIsOn) 

An possible example of use could be:

on switchChanged pSwitchIsOn
   if pSwitchIsOn is true then 
      answer "Switch Enabled"
   else
      answer "Switch Disabled"
   end if
end switchChanged


Paul :-)

-----Original Message-----
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Ludovic THEBAULT
Sent: 27 October 2015 14:03
To: How to use LiveCode <use-livecode@lists.runrev.com>
Subject: How script the widget Switchbutton ?

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.

I cannot find any example in the doc.  

Thanks

_______________________________________________
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

_______________________________________________
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

Reply via email to