MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuale Utente Pagina 13

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 330
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 12
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
Vedere la pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 329 330

Commenti su questo manuale

Nessun commento