App Designer: Display text before executing
Mostra commenti meno recenti
This is relatively simple: When a user pushes a button in App Designer, I want them to see a message saying that the operation is execuing because it takes a few minutes to complete. In the example below, the "Working..." message is not displayed prior executing the loop, thus the user only sees "Done" when the operation is over. I suspect that I need the function to display the "Working" text and then call the other, time consuming function, but it is not clear how I do this inside App Designer. Thanks.
function buttonpush(app,event)
app.myEditField.Value= 'Working...'
for i =1:100
x[i]=stuff
end
app.myEditField.Value = 'Done'
end
Risposta accettata
Più risposte (1)
Jan
il 7 Mag 2019
1 voto
This is a job for drawnow. Insert it after modifying the contents of the window to give Matlab the chance to update the display.
1 Commento
Matt Falcy
il 7 Mag 2019
Categorie
Scopri di più su Develop Apps Using App Designer in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!