hershrev at realtorsgroup.us
Tue Apr 27 16:57:16 CDT 2004
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
put the menuHistory of button "Foo" into Bar
go to card Bar
or if you want to change the tab to the matching card , the script that
Thanks , hershrev
On Tuesday, April 27, 2004, at 04:51 PM, David Burgun wrote:
>> 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
> 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
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode