Arguments

Description

This functions creates the border layout options to set uicontrols layout_options attribute.

Examples

//Creating a figure with the border layout with 50 pixel padding in width and 10 in height f=figure(..."dockable","off",..."infobar_visible","off",..."toolbar","none",..."menubar_visible","off",..."menubar","none",..."default_axes","off",..."layout","border",..."layout_options",createLayoutOptions("border",[50,10]),..."visible","on");c=createConstraints("border","top",[50,10]);//First frame is on top with 10 pixel in heightu_grid1=uicontrol(f,..."style","frame",..."backgroundcolor",[100],..."constraints",c);sleep(500);c.position="left";u_grid2=uicontrol(f,..."style","frame",..."backgroundcolor",[010],..."constraints",c);sleep(500);c.position="center";u_grid3=uicontrol(f,..."style","frame",..."backgroundcolor",[001],..."constraints",c);sleep(500);c.preferredsize=[10,100];c.position="right";u_grid4=uicontrol(f,..."style","frame",..."backgroundcolor",[110],..."constraints",c);sleep(500);c.position="bottom";u_grid5=uicontrol(f,..."style","frame",..."backgroundcolor",[101],..."constraints",c);

See Also

layout — Description of the different layouts and constraints for uicontrols and figures.