MATLAB Creating Graphical User Interfaces
To examine and change the tab order of the panel components, click the panel background to select it, then select Tools > Tab ...
The Tab Order Editor displays the panel's components in their current tab order. To change the tab order, select a component and ...
Create Menus for GUIDE Apps In this section... “Menus for the Menu Bar” on page 6-77 “Context Menus” on page 6-87 You can use GU ...
“Add Standard Menus to the Menu Bar” on page 6-79 “Create a Menu” on page 6-79 “Add Items to a Menu” on page 6-81 “Additional D ...
The DockControls property is set to 'on' and cannot be turned off until WindowStyle is no longer set to 'docked'. If you undock ...
NoteBy default, GUIDE selects the Menu Bar tab when you open the Menu Editor. (^2) Click the menu title to display a selection o ...
(^3) Fill in the Text and Tag fields for the menu. For example, set Text to File and set Tag to file_menu. Click outside the fie ...
(^1) Add an Open menu item under File, by selecting File then clicking the New Menu Item button in the toolbar. A temporary numb ...
You can also Choose an alphabetic keyboard accelerator for the menu item with the Accelerator pop-up menu. In combination with ...
Specify the Callback function that executes when the users selects the menu item. If you have not yet saved the UI, the default ...
NoteSee “Menu Item” on page 7-22 for information about programming menu items. The following Menu Editor illustration shows thre ...
When you run the app, the menu titles appear in the menu bar. 6 Lay Out a UI Using GUIDE ...
Context Menus A context menu is displayed when a user right-clicks the object for which the menu is defined. The Menu Editor ena ...
Create the Parent Menu All items in a context menu are children of a menu that is not displayed on the figure menu bar. To defin ...
Add Items to the Context Menu Use the New Menu Item button to create menu items that are displayed in the context menu. (^1) Add ...
(^2) Fill in the Text and Tag fields for the new menu item. For example, set Text to Blue background color and set Tag to blue_b ...
You can also modify menu items in these ways: Display a separator above the menu item by checking Separator above this item. Di ...
callback's name does not display in the Callback field of the Menu Editor, but selecting the menu item does trigger it. You can ...
The following figure shows the UIContextMenu property for the axes object with Tag property axes1. In the code file, complete th ...
Create Toolbars for GUIDE UIs In this section... “Toolbar and Tools” on page 6-94 “Editing Tool Icons” on page 6-102 Toolbar and ...
«
4
5
6
7
8
9
10
11
12
13
»
Free download pdf