MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manuel d'utilisateur Page 114

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 330
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 113
6 Laying Out a GUI
6-24
See “ActiveX Control” on page 8-31 for information about programming a
sample ActiveX control and an example.
Assigning an Identifier to Each Component
Use the Tag property to assign each component a unique meaningful string
identifier.
When you place a component in the layout area, GUIDE assigns a default value
to the
Tag property. Before saving the GUI, replace this value with a string that
reflects the role of the component in the GUI.
The string value you assign
Tag is used in the M-file code to identify the
component and must be unique in the GUI. To set
Tag:
1 Select Property Inspector from the View menu or by clicking the Property
Inspector icon .
2 In the layout area select the component for which you want to set the Tag.
3 In the Property Inspector, select Tag and then replace the value with the
string you want to use as the identifier. In the following figure, the
Tag is set
to
mybutton.
Resize the control by clicking and dragging
Vue de la page 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 329 330

Commentaires sur ces manuels

Pas de commentaire