MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 181

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 330
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 180
Associating Callbacks with Components
8-9
-
When you save the GUI, GUIDE constructs the name of the callback by
appending an underscore (
_) and the name of the callback property to the value
of the component’s
Tag property. For example, the MATLAB expression for the
Callback property for a push button in the GUI simple_gui with Tag property
pushbutton1 is
simple_gui(pushbutton1_Callback,gcbo,[],guidata(gcbo))
simple_gui is the name of the GUI M-file as well as the name of the main
function for that GUI. The remaining arguments generate input arguments for
pushbutton1_Callback. Specifically,
gcbo is a command that returns the handle of the callback object (i.e.,
pushbutton1).
[] is a place holder for the currently unused eventdata argument.
guidata(gcbo) returns the handles structure for this GUI.
...
Vista de pagina 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 329 330

Comentarios a estos manuales

Sin comentarios