select tabs

hershrev hershrev at realtorsgroup.us
Tue Apr 27 17:19:37 EDT 2004


In a stand alone it won't work .
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
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list