Page 1 of 1

LiveCode Controls vs MobGUI

Posted: Fri Aug 30, 2013 8:18 pm
by DR White
What are the major difference between MobGUI vs LiveCode Controls when used in mobile apps?

I assume that the click controls of LiveCode work with touching the screen of a mobile device or Not?

Are the LiveCode controls fully functional in mobile apps?

Why would I want to use MobGUI controls?

Thanks,

DR White

Re: LiveCode Controls vs MobGUI

Posted: Fri Aug 30, 2013 9:02 pm
by Dixie
DR White…

mobGUI was initially written as a personal project by John Craig… John wanted to be able to have a stack appear on the desktop, already formatted to a size of 320 x 480…add a navigation bar or a tool bar or both… he made buttons that looked like native iOS buttons instead of using the 'motif' theme that has been part of liveCode for far too long, that looks terrible on the desktop and even worse when running in a mobile environment…

Some people took to using mobGUI as a fast way to build an initial interface that they were going to use in their mobile app… others… the newbies and such like… used mobGUI as a way to circumvent coming to grips with scripting 'iOS native Controls'… but fair enough… each to their own…:-)

But if you are asking which is the best way to go in 'the long run', I would suggest that you get to grips with scripting the 'iOS Controls'… and yes, they are fully functional in mobile apps

Re: LiveCode Controls vs MobGUI

Posted: Sat Aug 31, 2013 4:42 pm
by MarcVanCauwenberghe
Hi Dixie,

Been wondering about MobGUI also lately. You talk about scripting 'iOS native Control', I probably looked in the wrong place but where is the info on scripting iOS native buttons, the navigation control and such?
I only say a few controls being mentioned by mobileControlCreate command.

Marc

Re: LiveCode Controls vs MobGUI

Posted: Sat Aug 31, 2013 9:07 pm
by Simon
Hi Marc,
For now a button is a button is a button...
You can just drag the ugly buttons from the tool bar and change their icons to make them pretty as you like. You will have to have you own graphics of course, but there are plenty of free iOS .psd out there.

The other native controls are for things like text entry boxes, date pickers etc.. To get new items of that sort they have to either come from LC or you have to program an external for it.

Simon
Edit: Actually something changed in LC recently. It used to be that they used buttons as containers for everything, I didn't actually know why but recall reading that just an image now could be used. So you don't really need to drag a button at all just import an image and put a "on mouseUp" in it's script.
It would be cool if someone could remind me of why buttons were always use (like the sheep in Sheep Herder).

Re: LiveCode Controls vs MobGUI

Posted: Sun Sep 01, 2013 7:13 am
by MarcVanCauwenberghe
Hi Simon,

thanks you again. That cleared up some things for me.

Marc

Re: LiveCode Controls vs MobGUI

Posted: Sun Sep 01, 2013 7:39 am
by Simon