Creating Graphical User Interfaces    

Layout Editor Context Menus

When working in the Layout Editor, you can select an object with the left mouse button and then click the right button to display a context menu. In addition to containing items found on the Layout Editor window menu, this context menu enables you to add a subfunction to your GUI M-file for any of the additional object properties that define callback routines.

Figure Context Menus

The following picture shows the context menu associated with figure objects. Note that all the properties that define callback routines for figures are listed in the submenu.

GUI Component Context Menus

The following picture shows the context menu associated with uicontrol objects. All the properties that define callback routines for this object are listed in the lower panel. Note that while axes do not have CallBack properties, you can program the ButtonDownFcn property callback to execute whenever the user clicks the mouse over the axes.


  Saving the Layout Aligning Components in the Layout Editor