MATLAB POLYSPACE RELEASE NOTES Uživatelský manuál Strana 200

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 240
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 199
6 Creating Graphical User Interfaces
Programming a GUI
After laying out the GUI and setting component properties, the next step is to
program the GUI. You program the GUI by coding one or more callbacks for
each of its components. Callbacks a re functions that e xecute in response to
some action by the user. A typical action is clicking a push button.
A GUI’s callbacks are found in an M-file that GUIDE generates automatically.
GUIDE adds templates for the most commonly used callbacks to this M-file,
butyoumaywanttoaddothers.UsetheM-fileEditortoeditthisfile.
The following figure shows the C allback template for a pus h button.
To learn more about programming a GUI, see “C reating a Simple GUI with
GUIDE” in the M ATLAB Creating GUIs documentation.
6-6
Zobrazit stránku 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 239 240

Komentáře k této Příručce

Žádné komentáře