Change Button text when pressed in app designer

조회 수: 35 (최근 30일)
Dhananjay Singh
Dhananjay Singh 2021년 10월 11일
댓글: Jonathan Yip 2022년 8월 10일
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.

채택된 답변

Thomas Fournier
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
Dhananjay Singh
Dhananjay Singh 2021년 10월 11일
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..."
Jonathan Yip
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 CenterFile 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!

Translated by