Mel - Maya Embedded Language

Use the frameLayout command to add collapsability to other layouts.

-frameLayout
//create  a window with a collapsable column of buttons
//and a collapsable column 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>