How to use tab UI widgets?

Terry Vogelaar terry at discovery.nl
Mon Mar 4 04:02:01 EST 2002


> I'm wondering how I use the tab widgets.  I create the widget, then drag
> some UI elements on to page 1 and now want to go to page 2 and do the same.
> 
> I've noticed that the widgets don't seem to be putting themselves on a tab
> pane.  

A tab is actually just a button used as a menu. When you click on the
rightmost tab of the properties palette, you can name the tabs. Then in the
script of the button, you put a script like:

on menuPick pWhich
  switch pWhich
  case "firsttab"
    hide group "secondstuff"
    show group "firststuff"
    break
  case "secondtab"
    hide group "firststuff"
    show group "secondstuff"
    break
  end switch
end menuPick

Terry





More information about the use-livecode mailing list