tabbed windows

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


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
             hide grp (line a of vTabs)
         END 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

More information about the Use-livecode mailing list