Mel - Maya Embedded Language

Use rowLayout to organize your information in rows.

-rowlayouts
//create three rows of buttons
//attach the frist butto to the left 0 pixels
//attach the last button to the right 0 pixes
//attach the middle button to the center


if (`window -exists bob`)
	{
	deleteUI bob;
	windowPref -remove bob;
	}
	
window -widthHeight 310 50 bob;
			
rowLayout 	
	-numberOfColumns 3
	-columnWidth3 100 100 100
	-columnAttach 1 "left" 0
	-columnAttach 2 "both" 0
	-columnAttach 3 "right" 0;
	
button -label "sphere" -width 100 -command "sphere -radius 1 -axis 0 90 0";
button -label "cube" -width 100 -command "polyCube -width 1 -height 1 -depth 1";
button -label "plane" -width 100 -command "plane -rotation 90 0 0 -width 1 -length 1";

showWindow bob;