Tab Panel (tab button) how to select manually a tab?
lc at pbh.on-rev.com
Mon Dec 24 01:54:37 CST 2012
The property you are looking for is the menuHistory, in a Tab Menu this property controls the hilited Tab Button.
So a simple way to control the Menu Tabs on a card is to add an openCard handler to switch the hilited tab, for example on the first card…
set the menuHistory of btn "MyTabMenu" to "1" ## Where "1" corresponds to the first Tab.
and the same for each other card accessed from the Tab Menu, just changing the corresponding number.
On 2012-12-23, at 11:00 PM, Ueliweb wrote:
> first merry christmas to all :-)
> in some case I would like to control the which tab is selected/ hilited.
> but what parameter i have to set?
> the tabs normal changes the card, some times I go to cards that are not
> selectable by the tab menu itself, because the user should got to this
> cards only after some actions.
> On this cards the tab menu is hidden because he should leave it also
> controlled be the program.
> From that cards it is possible to go back to different cards.
> If the user go to another card that shows the tab menu the tab hilited is
> still corresponding to the old card.
> greetings ueliweb
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode