MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 615

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 614
Examples: Program GUI C omponents
set of radio buttons, toggle buttons, or both, the button group allows only one
of them to be selected. When a user clicks a button, that button is s elected
and all other buttons are deselected.
When programming a button group, you do not code callbacks for the
individual buttons; instead, use its
SelectionChangeFcn callback to manage
responses to selections. The following example, “Program a Button G roup” on
page 12-30, illustrates how you use
uibuttongroup eventdatatodothis.
The following figure shows a button group with two radio buttons and two
toggle buttons. Radio Button 1 is selected.
If a user
clicks the other radio button or one of the toggle buttons, it becomes
select
ed and Radio Button 1 is deselected. The following figure show s the
result
of clicking Toggle Button 2.
12-29
Vue de la page 614
1 2 ... 610 611 612 613 614 615 616 617 618 619 620 ... 758 759

Commentaires sur ces manuels

Pas de commentaire