Re: Is it possible to script the choice of a tab in a tabbed button ?

2006-11-24 Thread André.Bisseret
Le 23 nov. 06 à 21:17, Eric Chatonet a écrit : Bonjour André, Bonjour Éric, You have got right replies yet from John. But you have to know that a tabbed button is like a menu button. So you may use: "set the menuHistory of btn to Yes, that's what Shao Sean answered to me ; So I got th

Re: Is it possible to script the choice of a tab in a tabbed button ?

2006-11-23 Thread Eric Chatonet
Bonjour André, You have got right replies yet from John. But you have to know that a tabbed button is like a menu button. So you may use: "set the menuHistory of btn to About tabbed buttons, The "How to manage tabbed buttons" tutorial might help you: How to manage tabbed buttons with 2 me

Re: Is it possible to script the choice of a tab in a tabbed button

2006-11-23 Thread André.Bisseret
Thanks a lot Shao and John for replies. So I got two solutions ; the two are working well if I put them in a handler closeCard of the card where the tabbed btn is staying ; Otherwise, if I put them in a preOpenCard handler in the script of the second card, the tab is changed actually, but I ge

Re: Is it possible to script the choice of a tab in a tabbed button ?

2006-11-23 Thread John Craig
To select a tab, you can use; select menuItem 2 of btn "btTabs" to select the 2nd tab JC André.Bisseret wrote: Hi, On a card, I have a tabbed button with four groups. One of these groups only (say, group1) is a field with share text property and background behavior so that another card c

Re: Is it possible to script the choice of a tab in a tabbed button

2006-11-23 Thread Shao Sean
Look at the "menuHistory" dictionary term. on preOpenCard set the menuHistory of btn "tabs" to 1 end preOpenCard btn "tabs" -- replace that with the actual name of your tab buttons 1 -- replace that with the actual number of the tab (in the Property Inspector the line number of the text equ

Is it possible to script the choice of a tab in a tabbed button ?

2006-11-23 Thread André.Bisseret
Hi, On a card, I have a tabbed button with four groups. One of these groups only (say, group1) is a field with share text property and background behavior so that another card could have this share text field on it. So, when I open this second card, I must be sure that the tabbed button