Is it possible to script the choice of a tab in a tabbed button
André.Bisseret
Andre.Bisseret at inria.fr
Thu Nov 23 14:37:14 EST 2006
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 get an error ; I
think that the engine does not find the "the grp old" when trying
to hide it.
Anyway, I am happy now and thanks again to the two of you
Best regards from Grenoble
André
Le 23 nov. 06 à 18:38, Shao Sean a écrit :
> 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 equals the menuHistory)
>
> ( red | green | blue ) <-- really bad Mac OS X tabs ;-)
>
> red = set the menuHistory to 1
> green = set the menuHistory to 2
> blue = set the menuHistory to 3
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list