Use tabLayout to add tabs to your windows. Tabs are useful in organizing your content into folders.
-tablayout
//create a window with tabs
//tab1 holds a column of buttons
//tab2 holds a row of buttons
//tab3 holds a collapsable frame of buttons
if (`window -exists tabedWin`)
{
deleteUI tabedWin;
windowPref -remove tabedWin;
}
window -widthHeight 300 270 tabedWin;
string $tabs = `tabLayout`;
string $tab1 = `columnLayout Tab1`;
button;
button;
button;
setParent..;
string $tab2 = `rowLayout -numberOfColumns 3 Tab2`;
button;
button;
button;
setParent..;
string $tab3 = `columnLayout Tab3`;
frameLayout
-label "mo buttons"
-borderStyle "etchedIn"
-collapsable true;
columnLayout -columnWidth 200 -columnOffset "left" 50;
button -label "one" -width 50;
button -label "two" -width 50;
button -label "three" -width 50;
button -label "four" -width 50;
button -label "five" -width 50;
button -label "six" -width 50;
button -label "seven" -width 50 ;
button -label "eight" -width 50;
setParent Tab3;
setParent..;
showWindow tabedWin;
|
<Top>