|MATLAB Function Reference|
Register an event handler with a control's event
Handle for a MATLAB COM control object.
Name of an M-function that accepts a variable number of arguments. This function will be called whenever the control triggers an event. Each argument is converted to a MATLAB string. See the section, Writing Event Handlers in the External Interfaces/API documentation for more information on handling control events.
Any event associated with
h that can be triggered. Specify
event using the event name.
Name of an M-function that accepts a variable number of arguments. This function will be called whenever the control triggers the event associated with it. See Writing Event Handlers in the External Interfaces/API documentation for more information on handling control events.
Register one or more events with a single callback function or with a separate handler function for each event. You can either register events at the time you create the control (using
actxcontrol), or register them dynamically at any time after the control has been created (using
The strings specified in the
eventhandler arguments are not case sensitive.
There are two ways to handle events. You can create a single handler (|
mwsamp control and list all events associated with the control:
Register all events with the same callback routine,
sampev. Use the eventlisteners function to see the event handler used by each event:
DblClick events with event handlers