tabbed windows

Jim Ault JimAultWins at yahoo.com
Wed Dec 7 15:28:40 EST 2005


On minor comment, Tom.  Declaring variables in Transcript can lead to
unexpected results as in this case, you chose "a".  This is technically a
reserved 'word', as in 'there is a file', etc.  Most of the time you will
have no problem, but there will be occasions when Transcript will get
confused.  This is a case where I would use "aaa" to make the name both
unique and more visible.

REPEAT with aaa = 1 to the num of lines of vTabs

Just an idea to consider.

Jim Ault
Las Vegas

On 12/7/05 12:12 PM, "Ton Kuypers" <tkuypers at pandora.be> wrote:

> Marty,
> 
> When I started using Revolution, this was quite a mystery to me as
> well, but it works sooooo easy...
> 
> Create a tabbed button with for instance 3 tabs in it: "My First
> Tab", "Tab Number Two" and "The Last Tab"
> 
> The script of this button (or at least, the way I do it):
> 
> ON menuPick vNew
>      put the text of me into vTabs
>      REPEAT with a = 1 to the num of lines of vTabs
>          try
>              hide grp (line a of vTabs)
>          END try
>      END REPEAT
>      try
>          show grp vNew
>      END try
> END menuPick
> 
> To make different objects show when you click on a tab, just create a
> group of these objects and name them the same as the tabs
> 
> Maybe there are better ways, but this one helps me out every time :-)
> 
> 
> Good luck & happy coding!
> 
> 
> Ton Kuypers
> Digital Media Partners bvba
> Tel. +32 (0)477 / 739 530
> Fax +32 (0)14 / 71 03 04
> http://www.dmp-int.com
> 
> 
> _______________________________________________
> 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