tab panel crayness

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
jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

tab panel crayness

Post by jpottsx1 » Thu Feb 18, 2010 9:42 pm

I have just completed the tutorial on the Tab Panel and thought that I was on my way. However, I realized that after all the work whatever I put on the first card shows up on the subsequent cards as well, even though I created new cards each named after the tab name.

Any Ideas on where I went wrong
Jeff G potts

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: tab panel crayness

Post by bn » Thu Feb 18, 2010 9:45 pm

Hi jpottsx1,
could you upload your stack, zip it first and then there is the option "Upload and attachment". It has to be zipped to be eligible for upload.
regards
Bernd

jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Re: tab panel crayness

Post by jpottsx1 » Thu Feb 18, 2010 9:49 pm

Here is the file
Attachments
Untitled 2.zip
(115.68 KiB) Downloaded 272 times
Jeff G potts

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: tab panel crayness

Post by bn » Thu Feb 18, 2010 10:06 pm

jpottsx1,
there were a couple of things.
the first and the last card did not have the group with the tab panel. I put them there with the command

Code: Select all

place group "RecordTab" onto first card
this way you can put a group with background behavior = true on cards that were created before you set the background behavior of the group to true. After such a group exists all newly created cards will contain this group.
Then you did not name one of the cards, I forgot which one, I named it.
After that everything worked fine. I upload the revised stack.
regards
Bernd
Attachments
Untitled 2.rev.zip
(116.26 KiB) Downloaded 297 times

jpottsx1
Posts: 46
Joined: Thu Jun 04, 2009 12:46 am
Contact:

Re: tab panel crayness

Post by jpottsx1 » Fri Feb 19, 2010 2:22 pm

THX for the help.

I see better how it all works together.
Jeff G potts

redpill
Posts: 21
Joined: Fri Jan 08, 2010 10:38 pm

Re: tab panel crayness

Post by redpill » Sat Feb 20, 2010 7:02 am

I see I am not the only one who had trouble implementing this tab control in the tutorial!

Once I had built my cards with the tab control set as background, it would not switch cards. I could not understand why. I thought the object script was not triggering; so, I placed an "answer whatTab" within the script. (Of course, this was after several minutes [an hour] of checking the tab names and card names, etc.)

I was certain everything was set correctly, until my answer dialog instantly hit me in the face with the answer! :shock:

What happened was that I named my cards exactly as instructed in the script. However, I was being a complete genius by leaving off the word "Preferences" from the tab names. Hey, why waste keystrokes!

So, instead of switching to the "Global Preferences" card like I thought it was supposed to do, it was trying to switch to "Global". DUH! :roll:

That is my embarassing story of trying to learn Revolution. But, I'm glad it happened, because the Application Browser is my new friend!

Post Reply