Page 2 of 2

Re: problem with tab panel

Posted: Mon Oct 04, 2010 8:32 pm
by Klaus
Hi pmc,
pmc wrote:Sorry, Klaus. I thought it was some kinda of script or code. I really do not understand the script.
set the menuhistory of btn 'Name' of cd "Name" to 1
when we said :
menuhistory of btn...
which btn are we talking about? Is it the Tab? Is the Tab also consider a btn in this case?
Thanks Klaus. Please do not get agitated by my stupidity.
Please lookup unknown terms like "menuhistory" in the docs (Rev Dictionary).

Yes a TAB panel, as you put it, IS in fact a button. I call it a tabbed button.

As I wrote earlier (what you obviously overlooked):
...
set the menuhistory of btn "your tabbed button here" of cd "Name of card with the tabbed button on it" to 1
...
Put this into the "mouseup" handler of the button that will navigate to card "Name of card with the tabbed button on it" and that's it :D


Best

Klaus

P.S.
Please do not copy/paste scripts from here without thinking or taking a deeper look!
We do not know your stacks, so we sometimes use "pseudo-code" like "... of cd X...", which should be obvious :wink:

Re: problem with tab panel

Posted: Mon Oct 04, 2010 9:16 pm
by pmc
Thanks again Klaus. I did look at the menuHistory in the dictionary but still wouldn't understand. I will try again tomorrow. Still it isnt working.

Re: problem with tab panel

Posted: Mon Oct 04, 2010 10:20 pm
by Klaus
Hi pmc,

well, setting "the menuhistory" of a tabbed button is the same as if you clicked that TAB with the mouse!

Anyway, please post all of your scripts involved, we won't be able to help you otherwise.
And don't worry, we'll make it work, promised! :D


Best

Klaus

Re: problem with tab panel

Posted: Tue Oct 05, 2010 5:29 pm
by pmc
Hi Klaus,
Thank you very much for your patience and understanding. Also your generous support and your assurance. It gives me tremendous faith in this product. This is the first time in my entire life in programming a software. I am drain out in thinking of the scripts.....need to rest. Will continue tomorrow with a fresh look at things. Thank you again.

Re: problem with tab panel

Posted: Wed Oct 06, 2010 3:09 pm
by pmc
Hi

Attached is the script. It has errors. I think it is the way that I saved this files.
The cards does open but with error message and it opens with the previously closed tab, not the one that i want it to open.

Re: problem with tab panel

Posted: Wed Oct 06, 2010 3:11 pm
by pmc
'Capture2' is the script on the button but once the card opens, it is accompany by the 'Capture3' error message.

Re: problem with tab panel

Posted: Wed Oct 06, 2010 3:18 pm
by Janschenkel
String in LiveCode have to be surrounded by double quotes (") not single quotes (') (a.k.a. apostrophes).
Try again with something along the lines of

Code: Select all

set the menuHistory of btn "Activity1" of cd "Activity" to 1
HTH,
Jan Schenkel.

Re: problem with tab panel

Posted: Wed Oct 06, 2010 3:55 pm
by Klaus
Hi pmc,

1. Rev needs double quotes around names. Single quotes/apostrophes causes the error on Capture3.gif
2. You shouldn't write: go "name of card" nor open "Name of card" but instead go CD "Name" -> Capture1.gif and Capture2.gif
3. The message "opencard" is never sent to a button, so this makes no sense inside of a button -> Capture2.gig
Put this, if still necessary, intot he script of the card.

After you correct these things, all should be fine :)


Best

Klaus

Re: problem with tab panel

Posted: Wed Oct 06, 2010 4:04 pm
by pmc
Ah yes, the "..." does prevent the error message from appearing but the tab isn't working, still. why?

Re: problem with tab panel

Posted: Wed Oct 06, 2010 4:27 pm
by Klaus
Hi pmc,

hm, no idea so far?!

You can send me the stack if you like and I will take a deeper look!
klaus(AT)major-k.de


Best

Klaus

Re: problem with tab panel

Posted: Wed Oct 06, 2010 4:47 pm
by pmc
Hi Klaus

This email ?: klaus(AT)major-k.de

Re: problem with tab panel

Posted: Wed Oct 06, 2010 4:55 pm
by pmc
Hi Klaus

Email send with attachements. Thanks