Mobgui Switch V1.0

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
marcelloe
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Mobgui Switch V1.0

Post by marcelloe » Mon Jan 20, 2014 5:14 pm

I am trying to use the new switch from Mobgui and I can't get it to work right. Has the script to use the switch changed? I am using the following script. I can't seem to get it to work. Any help would be appreciated.

Code: Select all

switchSet "name of Switch" , "on"

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Mobgui Switch V1.0

Post by splash21 » Mon Jan 20, 2014 7:59 pm

Hi, Marcelloe. Check out http://mobgui.com/doc.php?docId=12. There is no library script attached to your stack, so there are no extra commands like 'switchSet'. Instead, you can manipuate the switch object via it's properties;

Code: Select all

set the mgSwitchedOn of group "MySwitch" to true
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “MobGUI”