Programmatically event in App Designer, is it possible?
Mostrar comentarios más antiguos
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 comentarios
Adam Danz
el 21 de Sept. de 2022
Why not just call the ButtonPushed callback function directly?
Eric Delgado
el 21 de Sept. de 2022
Editada: Eric Delgado
el 21 de Sept. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!