Switch control bug

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

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

Switch control bug

Post by splash21 » Mon Oct 03, 2011 10:15 am

There were a few reports of a bug in the switch object. I think I've managed to reproduce it by renaming and saving the mainstack. A couple of references to long control id's (which include the filename) remained and caused a problem.

In the mean time, put the following code in the script of the switch object to fix it.

on openControl
mobGUISwitchInit the long id of me, "new"
end openControl
LiveCode Development & Training : http://splash21.com

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

Re: Switch control bug

Post by splash21 » Mon Oct 03, 2011 1:48 pm

After more testing, I had to make a further change to get the switch to completely behave. I'm in the middle of updating the plugin, so I'll create a quick update based on the previous release and post on the web site.
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “MobGUI”