Use the frameLayout command to add collapability to other layouts.
-frameLayout
//create a window with a collapsable column of buttons
//and a collapsable collumn of sliders. set the slider column to open collapsed.
if (`window -exists framed`)
{
deleteUI framed;
windowPref -remove framed;
}
window -widthHeight 200 210 framed;
columnLayout -adjustableColumn true;
frameLayout
-label "Buttons"
-labelAlign "top"
-collapsable true
-collapse false
-borderStyle "etchedIn";
columnLayout;
button;
button;
button;
setParent ..;
setParent..;
frameLayout
-label "Scroll Bars"
-labelAlign "center"
-collapsable true
-collapse true
-borderStyle "etchedOut";
columnLayout
-columnOffset "left" 15;
intSlider;
intSlider;
intSlider;
setParent ..;
setParent ..;
showWindow framed;
|
<Top>