Programmatically event in App Designer, is it possible?
Afficher commentaires plus anciens
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 commentaires
Adam Danz
le 21 Sep 2022
Why not just call the ButtonPushed callback function directly?
Eric Delgado
le 21 Sep 2022
Modifié(e) : Eric Delgado
le 21 Sep 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!