LiveCode Controls vs MobGUI

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

LiveCode Controls vs MobGUI

Post by DR White » Fri Aug 30, 2013 8:18 pm

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

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: LiveCode Controls vs MobGUI

Post by Dixie » Fri Aug 30, 2013 9:02 pm

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

MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: LiveCode Controls vs MobGUI

Post by MarcVanCauwenberghe » Sat Aug 31, 2013 4:42 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: LiveCode Controls vs MobGUI

Post by Simon » Sat Aug 31, 2013 9:07 pm

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).
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

MarcVanCauwenberghe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 142
Joined: Thu Feb 21, 2013 8:47 am

Re: LiveCode Controls vs MobGUI

Post by MarcVanCauwenberghe » Sun Sep 01, 2013 7:13 am

Hi Simon,

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

Marc

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: LiveCode Controls vs MobGUI

Post by Simon » Sun Sep 01, 2013 7:39 am

I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply