Open source MobGUI iOS controls - first draft

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:

Open source MobGUI iOS controls - first draft

Post by splash21 » Sat Apr 13, 2013 10:33 pm

(From the use list)
A while ago I started rewriting some controls to use the new before and after behavior handlers. The results are custom controls with no library code in their scripts - I think it's a lot cleaner.

The link below is to the first draft. The library is a one button palette. Just use the button to attach a copy of the library to your stack. After that you can close the original palette as it's not needed any more. The palette now attached to the stack is the one that you use to drag custom controls from. Any time you open your stack in the future, you still just use the attached palette.

I've added a few iOS controls to this palette - if feedback is good and everything works as expected, the other controls can be added.
My tests showed the controls to scale for normal/retina with no problems. Thanks to Dixie who also gave it a test on 5.5.3 and community.

There is a slight glitch on the NavBar - after initially dragged on to your stack, you can double click to snap it to the top of the stack, but it's height is slightly too small - dragging a resize handle solves the problem for now. Each control has an 'mg' custom property set.

https://dl.dropboxusercontent.com/u/796 ... IB-iOS.zip
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:

A more familiar looking palette

Post by splash21 » Sun Apr 14, 2013 10:25 am

Made things look like the previous pre LC6 version - everyone seemed to like that palette :)

Still to come;
  • Clicking on the device icon will give us the options for device size, etc.
    Selecting a custom control will give the available options for the control.
MGLIB-iOS.zip
(18.11 KiB) Downloaded 556 times
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:

Added the slider control

Post by splash21 » Sun Apr 14, 2013 10:53 am

MGLIB-iOS.zip
(18.4 KiB) Downloaded 724 times
ScreenShot.png
LiveCode Development & Training : http://splash21.com

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: Open source MobGUI iOS controls - first draft

Post by KennyR » Tue Apr 16, 2013 3:43 am

Thank you! I am glad to see this thread is still alive and kicking....I appreciate your efforts

nalexander50
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3
Joined: Fri Feb 22, 2013 1:55 am

Re: Open source MobGUI iOS controls - first draft

Post by nalexander50 » Wed Jun 26, 2013 4:24 am

This is amazing!! I am new to LiveCode Community (I pledged on Kickstarter!) and was excited to learn about the MobGUI plugin to create native iOS look and feel. Then, to my dismay, I found out that MobGUI could only be used on Community then I found THIS! I am very excited to start using this, and I hope that you continue development.

A suggested feature (may be implemented and I haven't found it yet?): Have a button/control/option/etc. to automatically resize the stack to the size of an iPhone.

Keep up the good work!!

Thanks,
Nick

Post Reply

Return to “MobGUI”