MATLAB POLYSPACE RELEASE NOTES Manual do Utilizador Página 200

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 240
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 239 240

Comentários a estes Manuais

Sem comentários