Filter löschen
Filter löschen

enable/disable property listener

4 Ansichten (letzte 30 Tage)
Robert Moss
Robert Moss am 23 Jun. 2016
Beantwortet: Robert Moss am 29 Jun. 2016
In R2013a I used addlistener to listen to various object properties. On occasion I had reason to enable and disable these listeners using get/set. Get and set are apparently no longer supported in R2016a (and probably somewhere earlier) for event.proplistener. Is there a handy way to enable and disable these listeners now?

Akzeptierte Antwort

Robert Moss
Robert Moss am 29 Jun. 2016
The Enabled property for a property listener was changed (I think in R2014b) to a logical. Previously it was a string "on" or "off". Also in this same release (I think) the property listener no longer supports set/get, so you MUST use dot notation to change the Enabled value.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by