Sorry , id would work in a stand alone or in a stand alone its unnecessary . Now after the idea from all of you, how about this
on preOpenStack
put the menuHistory of button "Foo" into Bar
go to card Bar
end preOpenStack
or if you want to change the tab to the matching card , the script that Jan. mentioned
Thanks , hershrev


On Tuesday, April 27, 2004, at 04:51 PM, David Burgun wrote:

Hi,
How do I select (click) a tab via a script ?
thanks, hershrev

Here's something I did that does the trick.


I had a Tab button that is associated with number of cards, e.g. TabA goes to CardA, TabB to CardB etc. I found that if the user selected TabB and then saved and quit the app, when the Stack next came up that CardA would be displayed but TabB would be selected. To remedy this I added the following to the Stack Script:

on preOpenStack
put the menuHistory of button "TabbedButton" of "TabGroup" into myLastSelectedTab
put menuttem myLastSelectedTab of button "TabbedButton of "TabGroup" into myMenuItem
send "menuPick myMenuItem" to group "TabGroup"
pass preOpenStack
end preOpenStack


Not sure if there is a better way, but this works ok for me.

Hope this Helps
Dave

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to