tabbed windows

Ton Kuypers tkuypers at pandora.be
Wed Dec 7 15:12:18 EST 2005


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





More information about the use-livecode mailing list