MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 62

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 61
2 How to Create a GUI with GUIDE
If the editor is not already open, GUIDE opens it to display the GUI
code file, and the cursor moves to the pop-menu callback, which already
contains this code:
% --- Executes on selection change in popupmenu1.
function popupmenu 1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO )
% eventdata reserved - to be defined in a future v ersion of MATLAB
% handles structure with handles and user data (see GUIDATA)
2 Add the following code to the popupmenu1_Ca llback after the comment
that begins
% handles...
This code first retrieves two p op-up menu properties:
String a cell array that contains the menu contents
Value the index into the m enu contents of the selected data s et
2-32
Przeglądanie stron 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag