
xiii
Creating GUIs Programmatically
11
Functions for Creating GUIs
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-2
Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Predefined Dialog Boxes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
Creating Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
ActiveX Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Using Application-Defined Data . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Interactive User Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Working with Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-4
Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-5
12
Examples of GUIs Created Programmatically
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
GUI with Axes, Menu, and Toolbar . . . . . . . . . . . . . . . . . . . . . . . . 9
The Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Techniques Used in the Example . . . . . . . . . . . . . . . . . . . . . . . . . 11
View the Completed GUI M-Files . . . . . . . . . . . . . . . . . . . . . . . . . 11
Creating the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Creating the GUI and Its Components . . . . . . . . . . . . . . . . . . . . . 12
Initializing the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Defining the Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Helper Function: Plotting the Plot Types . . . . . . . . . . . . . . . . . . . 21
Color Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
The Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Comentários a estes Manuais