External Interfaces/API Reference |
Return a list of events that the control can trigger
Syntax
Arguments
h
Handle for a MATLAB COM control object.
Description
Returns a structure array containing all events, both registered and unregistered, known to the control, and the function prototype used when calling the event handler routine. For each array element, the structure field is the event name and the contents of that field is the function prototype for that event's handler.
Note
The send function is identical to events , but send will be made obsolete in a future release.
|
Examples
Create an mwsamp
control and list all events:
f = figure ('pos', [100 200 200 200]); h = actxcontrol ('mwsamp.mwsampctrl.2', [0 0 200 200], f); events(h) Click = void Click() DblClick = void DblClick() MouseDown = void MouseDown(int16 Button, int16 Shift, Variant x, Variant y)
Or assign the output to a variable and get one field of the returned structure:
See Also
isevent
, eventlisteners
, registerevent
, unregisterevent
, unregisterallevents
eventlisteners (COM) | fieldnames |