How can I click a push button programmatically in App Designer?
106 views (last 30 days)
One of my pushbuttons when clicked does a bunch of calculations and I was wondering how to 'click' it in some other part of my code.
I know that I can create a helper function instead but I wanted to know if it was possible to just 'click' the button programmatically.
Kojiro Saito on 1 Aug 2019
You can call the button pushed callback function programmatically, so if your callback looks like this,
% Button pushed function: Button
function ButtonPushed(app, event)
% Do something
you can call it by the following.
More Answers (1)
William on 26 May 2023
Hi. Very new to appdesigner and gui building, but ... I have been able to programmatically push a button in my startup function using
seems to work very well. I can even "pre-check" checkboxes using some like
and then I can programmatically push the button that uses this data. Very slick