Change Button text when pressed in app designer

36 visualizaciones (últimos 30 días)
Dhananjay Singh
Dhananjay Singh el 11 de Oct. de 2021
Comentada: Jonathan Yip el 10 de Ag. de 2022
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.

Respuesta aceptada

Thomas Fournier
Thomas Fournier el 11 de Oct. de 2021
You can change the text displayed on your button through the command:
app."name of your button".Text="newName"
  2 comentarios
Dhananjay Singh
Dhananjay Singh el 11 de Oct. de 2021
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 el 10 de Ag. de 2022
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...""

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by