External Interfaces Reference |
Return list of events control can trigger
Syntax
Description
S = h.events
returns structure array S
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.
S = events(h)
is an alternate syntax for the same operation.
Note
The send function is identical to events , but support for send will be removed in a future release of MATLAB.
|
Examples
Create an mwsamp
control and list all events:
f = figure ('position', [100 200 200 200]); h = actxcontrol ('mwsamp.mwsampctrl.2', [0 0 200 200], f); h.events Click = void Click() DblClick = void DblClick() MouseDown = void MouseDown(int16 Button, int16 Shift, Variant x, Variant y)
Assign the output to a variable and get one field of the returned structure:
See Also
isevent
, eventlisteners
, registerevent
, unregisterevent
, unregisterallevents
eventlisteners | get (COM) |
© 1994-2005 The MathWorks, Inc.