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?
button "Tab Menu"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
button "Tab Menu"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: button "Tab Menu"
Hi Max,
look at "menuHistory" in the dictionary
use lock messages to not trigger tab 1 when setting it.
Kind regards
Bernd
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
Kind regards
Bernd
Re: button "Tab Menu"
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
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"
Great! It works!
Thank you!!!
Thank you!!!

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w