User`s guide

8 Programming a GUIDE GUI
Viewing the Methods for an ActiveX Control
To view the a
vailable methods for an ActiveX control, you first need to obtain
the h andle
tothecontrol. Onewaytodothisisthefollowing:
1 In the GUI c
ode file, add the command
keyboard onaseparatelineof
the
activ
ex1_Click
callback. The command keyboa rd puts MATLAB
software
in debug mode and pauses at the
activex1_Click callback when
you click
the ActiveX control.
2 Run the GUI and click the ActiveX control. The handle to the control is
now set to
hObject.
3 To view the methods for the control, enter
method
sview(hObject)
This displays the available methods in a new window, a s shown in the
following figure.
8-56