Mel - Maya Embedded Language

Use a scrollLayout to add scrolling funtionality to your window.

-scrolllayout
//scrolling window containing s column of buttons

if (`window -exists scrollinWin`)
{
deleteUI scrollinWin;
windowPref -remove scrollinWin;
}

window -widthHeight 150 150 scrollinWin;
 scrollLayout;
	columnLayout;
		button;
		button;
		button;
		button;
		button;
		button;
	setParent..;
showWindow scrollinWin;