Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Where is a list of eventtypes for listeners?

Asked by Matt Fig on 11 Dec 2012

Usually I think MATLAB has excellent documentation, but there are occasions when I have to pull my hair out looking for something. So when referring to this example solution posted by TMW, it seems we can add an eventlistener to a uicontrol with an eventtype of 'ActionEvent'. But when I use this example I get the following warning message in r2011b:

Warning: The specified event will be removed in a future release.
Please use the following event instead: ContinuousValueChange

So the obvious question is:

What are all of the choices when setting eventtypes for listeners?

I have searched everywhere I can think of for a list of such events but found nothing. Is this yet another instance of non-documentation in MATLAB or have I just not been able to find it?

Does anyone know of such a list in the doc? I want to find something like this list of axes properties but for events or listeners. On that list would be 'ActionEvent' and 'ContinuousValueChange' at least.


Daniel on 12 Dec 2012

I cannot even find documentation on handle.listener. I wonder if this is a result of undocumented functionality associated with hg2.

Jan Simon on 12 Dec 2012

The addlistener command works for many years now, so it is not connected to HG2. The M-file contains some documentation, but you do not find it in the docs, as far as I remember.

Vishal Rane on 27 Aug 2013

Matt, did you find any list or documentation for this?

Matt Fig


No products are associated with this question.

1 Answer

Answer by Malcolm Lidierth on 26 May 2013


As the uicontrols use Java under the hood, see the available Java listeners at

The link above is now broken but I'll guess the UI was a slider or something of that sort which calls a stateChange rather than event listener.

MATLAB collapse these into their 'Callback'. I have always preferred to stick with documented components - so I use Java for GUIs in MATLAB not MATLAB uicontrols. TMW may not document them, but Sun/Oracle do of course.


Malcolm Lidierth on 26 May 2013


There are two links, the first does not work: at least insofar that it now only brings up a page that says "Oops". So its broken according to the formal definition of the term given here:


Image Analyst on 26 May 2013

I only saw one link that you listed - the one at, and clicking on it brings up a page that says

"Listener API Table

In the table that follows, the first column gives...."

Malcolm Lidierth on 26 May 2013


Oops. I meant the OPs first link. Probably best to break this LOop.

Malcolm Lidierth

Contact us