Tab Panel problem

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Tab Panel problem

Post by paul_gr » Wed Jan 09, 2008 10:04 pm

I'm having a problem using a Tab Panel.
I followed the instructions of the "Tabbed buttons" stack by Eric Chatonet to set up a test stack using the Tab Panel to switch between cards.

The first click on a tab works correctly, but after the first click, I have to click TWICE on a Tab to make the Tab Panel respond and switch cards.
This happens in the Rev IDE and as a standalone.

The only script in the stack is this one attached to the grouped buttons on the Tab Panel.

on menuPick pNewItem,pOldItem
go to card pNewItem
end menuPick

I'm using Rev 2.8.1 on XP.

thanks
Paul

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Wed Jan 09, 2008 11:33 pm

It works as expected here.

Did you group the tab button?
Did you set it's background behaviour to true?
Did you place that group on every card?
Did you set the names of the cards to the same string as a line of the tab button?

These are the things that I normally do wrong when doing the tab button with card approach.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Post by paul_gr » Thu Jan 10, 2008 12:26 am

Thanks for that.
I thought I was copying the group to each card properly,
but tried again with a new stack and it worked fine.

Paul

Post Reply