MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Instrukcja Użytkownika Strona 13

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 330
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 329 330

Komentarze do niniejszej Instrukcji

Brak uwag