External Interfaces Reference Previous page   Next Page
events

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.

Examples

Create an mwsamp control and list all events:

Assign the output to a variable and get one field of the returned structure:

See Also

isevent, eventlisteners, registerevent, unregisterevent, unregisterallevents


Previous page  eventlisteners get (COM) Next page

© 1994-2005 The MathWorks, Inc.