Creating Graphical User Interfaces | ![]() ![]() |
Laying Out GUIs - The Layout Editor
The Layout Editor enables you to select GUI components from a palette and arrange them in a figure window. The component palette contains the GUI components (uicontrol
objects) that are available for you to use in your user interface. The layout area becomes the figure window upon activation.
Placing an Object In the Layout Area
Select the type of component you want to place in your GUI by clicking on it in the component palette. The cursor changes to a cross, which you can then use to select the position of the upper-left corner of the control, or you can set the size of the control by clicking in the layout area and then dragging the cursor to the lower-right corner before releasing the mouse button.
Activating the Figure
You can generate a functioning GUI by activating the figure you have designed with the Layout Editor. Activate the figure by selecting the Activate Figure item in the Tools menu or by clicking figure activator in the toolbar.
When you activate a figure, the following occurs:
.fig
extension.Replace - writes over the existing file.
Append - inserts new callbacks for components added since the last save and make changes to the code based on change made from the Application Options dialog.
Note GUIDE automatically saves both the application M-file and the FIG-file when you activate the GUI. |
![]() | GUI Building Tools | Layout Editor Context Menus | ![]() |