MATLAB Creating Graphical User Interfaces
In changeme_main.m, the buttonChangeMe_Callback function executes this command to display the second dialog box: changeme_dialog ...
In guide_inconeditor.m, the function guide_iconeditor_OpeningFcn contains this command: colorPalette = guide_colorpalette('iconE ...
colorPalette is the Figure object for the guide_colorPalette window. Similarly, guide_iconeditor_OpeningFcn calls the guide_to ...
...
Manage Callback Execution 12 ...
Interrupt Callback Execution In this section... “How to Control Interruption” on page 12-2 “Callback Behavior When Interruption ...
If the running callback contains one of these commands, then MATLAB stops the execution of the running callback and executes th ...
Clicking specific pairs of buttons demonstrates the effect of different property value combinations : 12 Manage Callback Executi ...
Callback interruption — Click Wait (interruptible) immediately followed by either button in the second window: Surf Plot (queue ...
Here is the command that creates the Mesh Plot (cancel) push button. Notice that the BusyAction property is set to 'cancel'. hme ...
Examples of Programmatic Apps 13 ...
Programmatic App that Displays a Table This example shows how to create a table in an app using the uitable function. It also sh ...
Create a Table Containing Mixed Data Types Display mixed data types by setting the Data property to a cell array. load patients ...
To adjust the widths of the columns, specify the ColumnWidth property. The ColumnWidth property is a 1-by-N cell array, where N ...
Resize the table and remove any extra space using the Position property. t.Position = [15 25 495 200]; By default, tables use ro ...
Restrict Editing of Cell Values To restrict the user's ability to edit data in the table, set the ColumnEditable property. By de ...
t.ColumnFormat = {[] [] [] [] {'Excellent', 'Fair', 'Good', 'Poor'}}; Create a Callback The Table object has two commonly used c ...
Get All Table Properties To see all the properties of the table, use the get command. get(t) BackgroundColor: [2x3 double] Being ...
Type: 'uitable' UIContextMenu: [0x0 GraphicsPlaceholder] Units: 'pixels' UserData: [] Visible: 'on' Programmatic App that Displa ...
...
«
13
14
15
16
17
18
19
20
21
22
»
Free download pdf