Problem with a tabbed button

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
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Problem with a tabbed button

Post by phaworth » Mon Aug 31, 2009 3:36 am

Have been using a card with a tabbed button on it for some weeks now with no problems. I used the trick someone gave me on the forum of creating a group containing the fields on each tab and naming it the same as the tab name. So group TAB1 includes all the fields that should appear on TAB1, and so on. The menuPick handler for the tab button just hides the old tab and makes the new one visible. All worked like a charm until a few minutes ago.

I was making some changes to the card but the groups are still in place but now none of the controls on any of the tabs show up when I click on a tab. Yet if I open the property inspector for a currently selected group and it's constituent controls, they have their visible property checked.

Any ideas?

Thanks,
Pete

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Aug 31, 2009 5:01 am

Ungrouping or regrouping controls can play tricks with the layer property of controls - are you sure the tab menu hasn't somehow gotten in front of the groups?

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth » Mon Aug 31, 2009 6:19 am

OK, I'm not familiar enough with Rev yet to know what "in front of" means :-). The tabbed button has a layer of 227 and the 3 groups have layers of 1, 64, and 130.

If that means the tabbed button is in front of the groups, how do I renumber the groups so they are where they should be?

Thanks,
Pete

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Aug 31, 2009 9:01 am

Pete,

If the tabbed button is part of a group, turn off "Select Grouped Controls", select the group, use menu to send group to back.

If the tabbed button is not in a group, just select the tabbed button and use the menu to send it to back.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth » Mon Aug 31, 2009 5:49 pm

Many thanks Mark, that worked perfectly.
Pete

Post Reply