Page 1 of 1

button "Tab Menu"

Posted: Mon Jan 20, 2014 6:08 pm
by MaxV
Hello,
I love "Tab Menu" buttons, but how to switch between tab buttons without clicking on them?
For example I have a stack with 3 card, my "Tab Menu" 3 buttons permit to go to the respective card clicking on them;
but on the contrary, when I need to go to a card without clicking on my tab menu, how can I switch the "tab menu" to the correct tab?

Re: button "Tab Menu"

Posted: Mon Jan 20, 2014 7:51 pm
by bn
Hi Max,

look at "menuHistory" in the dictionary

Code: Select all

on mouseUp
   lock messages
   set the menuhistory of button 1 of card 1 to 1
   unlock messages
end mouseUp
use lock messages to not trigger tab 1 when setting it.

Kind regards
Bernd

Re: button "Tab Menu"

Posted: Mon Jan 20, 2014 11:56 pm
by dunbarx
Hi.

What Bernd said.

But if you are navigating via other methods than clicking on the tab menu button, you may be better served using his idea in an openCard handler, where the tab is set based on some card property, like name or number. Still have to lock messages, of course.

Craig Newman

Re: button "Tab Menu"

Posted: Tue Jan 21, 2014 11:27 am
by MaxV
Great! It works!
Thank you!!! :D