Programmatically event in App Designer, is it possible?
Show older comments
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 Comments
Adam Danz
on 21 Sep 2022
Why not just call the ButtonPushed callback function directly?
Eric Delgado
on 21 Sep 2022
Edited: Eric Delgado
on 21 Sep 2022
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!