MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 81

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 80
CodetheSimpleProgrammaticGUI
that particular event. But how does the software know which callback to
execute? You must use each component’s
Callback property to specify the
name of the callback with which it is associated.
1 To the uicontr ol statement that defines the Surf push button, add the
property/value pair
'Callback',{@surfbutton_Callback}
so that the statement looks like this:
hsurf = uicontrol('Style','pushbut ton','String','Surf',...
'Position',[315,220,70,25],...
'Callback',{@surfbutton_Callback});
Callback
isthenameoftheproperty.surfbutton_Callback is the name
of the callback that services the Surf push button.
2 Similarly, to the uicontrol statement that defines the Mesh push button,
add the property/value pair
'Callback',{@meshbutton_Callback}
3 To the uicontrol statement that defines the Contour push button, add
the property/value pair
'Callback',{@contourbutton_Callback}
4 To the uico ntro l statement that defines the pop-up menu, add the
property/value pair
'Callback',{@popup_menu_Callback}
For more information, see “Write Code for Callbacks” on page 12-7.
Initialize the Simple Programmatic GUI
When you make t he GUI visible , it should b e initialized so that it is ready for
the user. This topic shows you how to
Make the GUI behave properly when it is resized by changing the
component and figure units to
normalized. This causes the components to
3-13
Seitenansicht 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare

Solac Elektrické varné konvice uživatelské příručky

Seznam produktů Solac Elektrické varné konvice obsahuje 1 uživatelské příručky pro 1 modelů. Všechny uživatelské příručky pdf jsou k dispozici ke stažení nebo prohlížení online.

Klepnutím na abecedu níže přejděte na úplný seznam modelů začínajících tímto písmenem

Modely Typ Dokumentu
KT5865
Návod k použití        Solac KT5865, 2 stránky