Change Button text when pressed in app designer
25 次查看(过去 30 天)
显示 更早的评论
How to change text for a button when pressed. I have a Calculate button which performs some calculations, I want it to change to "Calculating" and after process is over revert back to orignal.
0 个评论
采纳的回答
Thomas Fournier
2021-10-11
You can change the text displayed on your button through the command:
app."name of your button".Text="newName"
2 个评论
Jonathan Yip
2022-8-10
Yes, I have the same problem. Not sure what to do.
"If I put this command at the starting of code it changes(app.CalculateButton.Text = "Calculating.." ); but when I put (app.CalculateButton.Text = "Calculate") at the end to revert it back to orignal it doesnt change to "Calculating...""
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!