Page 1 of 1

tab panel crayness

Posted: Thu Feb 18, 2010 9:42 pm
by jpottsx1
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

Re: tab panel crayness

Posted: Thu Feb 18, 2010 9:45 pm
by bn
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

Re: tab panel crayness

Posted: Thu Feb 18, 2010 9:49 pm
by jpottsx1
Here is the file

Re: tab panel crayness

Posted: Thu Feb 18, 2010 10:06 pm
by bn
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

Re: tab panel crayness

Posted: Fri Feb 19, 2010 2:22 pm
by jpottsx1
THX for the help.

I see better how it all works together.

Re: tab panel crayness

Posted: Sat Feb 20, 2010 7:02 am
by redpill
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!