MATLAB Creating Graphical User Interfaces
Apps with Auto-Reflow Apps with auto-reflow are preconfigured app types that optimize the viewing experience by automatically ad ...
When an app is resized beyond a certain predefined threshold, the panels in the app reflow and reorder to make the best use of t ...
When an app becomes very small, auto-resize stops eliminating whitespace and resizing components. This can put some components o ...
See Also appdesigner 16 App Layout ...
App Programming “Managing Code in App Designer Code View” on page 17-2 “Startup Tasks and Input Arguments in App Designer” on p ...
Managing Code in App Designer Code View Code View provides most of the same programming features that the MATLAB Editor provides ...
Pane Name Pane Appearance Pane Features Code Browser Callbacks, Functions, and Properties tabs — Use these tabs to add, delete, ...
Programming Your App App Designer defines your app as a MATLAB class. You do not need to understand classes or object-oriented p ...
To use the name of a component in your code, you can save some time by copying the name from the Component Browser. Right-click ...
Sharing Data Within Your App To store data, and share it among different callbacks, create a custom property. For example, you m ...
more information, see “Startup Tasks and Input Arguments in App Designer” on page 17- 8. Fixing Coding Problems and Run-Time Err ...
Startup Tasks and Input Arguments in App Designer App Designer allows you to create a special function that executes when the ap ...
See “App with Auto-Reflow that Updates Plot Based on User Selections” on page 18-4 for an example of an app that has a StartupFc ...
After you click OK, App Designer creates a StartupFcn callback that has the function signature you defined in the dialog box. If ...
The Run button also allows you to change the list of arguments in the function signature. Select Edit App Input Arguments... fro ...
Creating Multiwindow Apps in App Designer A multiwindow app consists of two or more apps that share data. The way that you share ...
“Return Information to the Main App” on page 17-14 — Write a public function in the main app that updates the UI based on the u ...
For a fully coded example of a StartupFcn callback, see Plotting App That Opens a Dialog Box on page 17-16. (^2) Call the dialog ...
... end For a fully coded example of a public function, see Plotting App That Opens a Dialog Box on page 17-16. (^2) Create a pr ...
% Delete the dialog box delete(app) end (^2) Open the main app into Code View, right-click the app.UIFigure object in the Compon ...
«
17
18
19
20
21
22
23
24
25
26
»
Free download pdf