Version 0.12 : Tab bar and buttons

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:

Version 0.12 : Tab bar and buttons

Post by splash21 » Mon Jul 11, 2011 6:13 pm

Version 0.12 is now available. If you're already using V0.10 or above then the plugin can automatically download and install the update - just click on the update icon in the menu bar then cick the green update button.

There's a video available with a demo - check out the docs at http://mobgui.com/docs.php

If you have any problems with the video, it's also available at http://www.youtube.com/MobGUI

You can download the demo stack created during the demo :
Tabs_Demo_V0-12.zip
(147.21 KiB) Downloaded 352 times
Enjoy V0.12!

John.
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: Version 0.12 : Tab bar and buttons

Post by splash21 » Tue Jul 12, 2011 12:07 pm

When I look at the tabs demo running on the iPhone, there's a pause before the touched button becomes active - as we move to the new card. I've attached another version with a small tweak - the button becomes active and the NavBar title changes - then we move to the new card. It's looks and feels more like the iPhone app store app. I prefer this version, but it's down to personal taste!

The change is in the script of the 'Common' group;

Code: Select all

on touchStart
   put the uTabText of me into tTabText
   set the uText of group "NavBar" to tTabText
   send "goCard tTabText" to me in 0 millisecs
end touchStart


on goCard pCard
   go card pCard
end goCard

Tabs_Demo2.zip
(147.32 KiB) Downloaded 316 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:

Re: Version 0.12 : Tab bar and buttons

Post by splash21 » Tue Jul 12, 2011 7:31 pm

:!: I've noticed that There's an issue editing either of the 2 examples posted here. I've tracked it down to the background object. MobGUI issues a 'set the layer of ...... to bottom' for the background control, but in the examples, I've grouped the background control, so the attempted layer change throws an error. This is the only relayering MobGUI performs, so I'll patch it and get another update posted ASAP. Removing the background control from the 'Common' group solves the problem in the examples for now!


John.
LiveCode Development & Training : http://splash21.com

Post Reply

Return to “MobGUI”