Programmatically event in App Designer, is it possible?
Ältere Kommentare anzeigen
I am trying to create an event programmatically in App Designer, like a "PushedButton" or a "ValueChanged". Is it possible? I know that I can call the callback function directly, without passing the "event" argument, but I wish I could use notify function.
notify(app.myButton, 'ButtonPushed')
% Error using matlab.ui.control.Button/notify
% Cannot notify listeners of event 'ButtonPushed' in class 'matlab.ui.control.Button'.
2 Kommentare
Adam Danz
am 21 Sep. 2022
Why not just call the ButtonPushed callback function directly?
Eric Delgado
am 21 Sep. 2022
Bearbeitet: Eric Delgado
am 21 Sep. 2022
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!