MobGui V1.0, Normal Button & Icon Option button issue

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Post Reply
Youks
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 135
Joined: Mon Sep 05, 2011 6:08 pm
Location: Qatar

MobGui V1.0, Normal Button & Icon Option button issue

Post by Youks » Mon Jan 20, 2014 11:07 am

Hi John,

With 3 icon option buttons placed in a Tab-bar and an normal individual button placed in a card, while clicking on the normal button one icon Option button is highlighted with the iOS7 theme! That was the issue i talked about but doesn't seem to have been resolved. Any fix or workaround ?

Thx

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

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by splash21 » Mon Jan 20, 2014 11:56 am

Sorry, Youks - I never realised what you meant. Normally - as far as I'm aware - one tab button should always be selected - the tabs being the current available pages/cards. An example is the app store. If you start the app store app, you can't deselect all the tabs. Should all tabs be deselected in certain cases? Maybe displaying a startup screen when the app starts...

When switching from any theme to any other theme one tab button is always left selected. You can right click on the control, then 'Send Message -> mgRelease' from the context menu. You can also send the message in a script.

HTH!
LiveCode Development & Training : http://splash21.com

Youks
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 135
Joined: Mon Sep 05, 2011 6:08 pm
Location: Qatar

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by Youks » Mon Jan 20, 2014 4:36 pm

Hi John,

I understood that but if you have time have a look at this simple stack and tell me what is wrong ! Thx
Attachments
UnTest3.livecode.zip
(5.02 KiB) Downloaded 256 times

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

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by splash21 » Mon Jan 20, 2014 10:09 pm

Hi, Youks - that is pretty weird! If you uncheck the 'backgroundBehavior' on each of your tab buttons then everything works OK. The backgroundBehavior property seems to be causing the shared groups to pick up the mouseUp message BEFORE the button group - looks like an LC bug - you should consider submitting a QCC report :shock:
LiveCode Development & Training : http://splash21.com

Youks
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 135
Joined: Mon Sep 05, 2011 6:08 pm
Location: Qatar

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by Youks » Mon Jan 20, 2014 11:22 pm

Hi John,

Thx for your feedback ! :(

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

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by splash21 » Tue Jan 21, 2014 1:33 pm

I had time for another look today and after I removed the backgroundBehavior from the tab buttons, I grouped them together into a group 'TabButtons' then added that group to each card. Everything worked fine. I had to visit each card individually and remove the tab buttons with the "Object => Remove Group" menu item before the IDE would let me group them together.
LiveCode Development & Training : http://splash21.com

Youks
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 135
Joined: Mon Sep 05, 2011 6:08 pm
Location: Qatar

Re: MobGui V1.0, Normal Button & Icon Option button issue

Post by Youks » Tue Jan 21, 2014 10:20 pm

Thx for the Good news John! :D

Post Reply

Return to “MobGUI”