MATLAB Function Reference    
unregisterallevents (COM)

Unregister all events for a control



   Handle for a MATLAB COM control object.


Unregister all events that have previously been registered with control, h. After calling unregisterallevents, the control will no longer respond to any events until you register them again using the registerevent function.


Create an mwsamp control, registering three events and their respective handler routines. Use the eventlisteners function to see the event handler used by each event:

Unregister all of these events at once with unregisterallevents. Now, calling eventlisteners returns an empty cell array, indicating that there are no longer any events registered with the control:

To unregister specific events, use the unregisterevent function:

See Also

events, eventlisteners, registerevent, unregisterevent, isevent

  unmkpp unregisterevent (COM)