MATLAB Creating Graphical User Interfaces
Resize Behavior You can control whether users can resize the window and how MATLAB handles resizing. GUIDE provides three option ...
For a UI created in GUIDE, set the Command-line accessibility option to prevent users from inadvertently changing the appearance ...
GUIDE also adds a callback whenever you edit a callback routine from the Layout Editor's right-click context menu and when you a ...
To ensure that the figure background matches the color of the components, select Use system color scheme for background in the G ...
Callbacks for UIs without Code Even when there is no code file associated with a UI FIG-file, you can still provide callbacks fo ...
...
Lay Out a UI Using GUIDE “GUIDE Templates” on page 6-2 “Set the UI Window Size in GUIDE” on page 6-10 “Add Components to the GU ...
GUIDE Templates In this section... “Access the Templates” on page 6-2 “Template Descriptions” on page 6-3 Access the Templates G ...
(^3) Click OK to open the UI template in the Layout Editor. Template Descriptions GUIDE provides four fully functional templates ...
Select this template when the other templates are not suitable for the UI you want to create. GUI with Uicontrols The following ...
When you click the Run button , the UI appears as shown in the following figure. GUIDE Templates ...
When you enter values for the density and volume of an object, and click the Calculate button, the program calculates the mass o ...
You can select other plots in the pop-up menu. Clicking the Update button displays the currently selected plot on the axes. The ...
When you click the Run button, the following dialog displays. When you run the UI and assign the output to a variable, the dialo ...
a = 'Yes' Select this template if you want the dialog box to return the user’s selection, or if you want to create a modal dialo ...
Set the UI Window Size in GUIDE Set the size of the UI window by resizing the grid area in the Layout Editor. Click the lower-ri ...
Set the Window Position or Size to an Exact Value (^1) In the Layout Editor, open the Property Inspector for the figure by click ...
Add Components to the GUIDE Layout Area In this section... “Place Components” on page 6-12 “User Interface Controls” on page 6-1 ...
Once you have defined a UI component in the layout area, selecting it automatically shows it in the Property Inspector. If the P ...
Use Coordinates to Place Components The status bar at the bottom of the GUIDE Layout Editor displays: Current Point — The curre ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf