Switching between themes using code

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Switching between themes using code

Post by andyh1234 » Sat Jan 18, 2014 6:08 pm

Hi,

Is it possible to switch between the themes using code, for example if the app detects iOS7 it can use that theme, if it detects Android it could switch to that theme instead.

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

Re: Switching between themes using code

Post by splash21 » Sun Jan 19, 2014 1:00 am

Switching by code isn't possible at the moment as only the control behaviors are added to your stack. A future version could contain an invisible custom control with a behavior to do that, though :D
LiveCode Development & Training : http://splash21.com

andyh1234
Posts: 442
Joined: Mon Aug 13, 2007 4:44 pm
Location: Eccles UK
Contact:

Re: Switching between themes using code

Post by andyh1234 » Sun Jan 19, 2014 10:02 pm

That would be good, its possible now to have a single card that works on both iOS and Android (and maybe other future platforms) so it would be great if a theme could be loaded and applied somehow.

Post Reply

Return to “MobGUI”