How to create the button "next" in a GUI?

4 visualizaciones (últimos 30 días)
Bernardo Marino
Bernardo Marino el 22 de Jul. de 2016
Comentada: Geoff Hayes el 13 de Mayo de 2018
I created with GUIDE, a simple gui. The interface consists of static text, edit text and a button. When i push the button, i would like to "turn the page", so as to put other edit text, static text or buttons. The code is generated by GUIDE, but do not understand how to change it. Perhaps, i should write something inside the buttonNext_Callback function. It is my first gui and do not know how to do.

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 22 de Jul. de 2016
Bernardo - yes, in the next button callback function you would hide the existing controls and display the next set of controls. Or, you can use panels to represent the "pages" of your GUI. Create a panel and add the controls from above. Then create another panel with a different set of controls. When the user presses the next button, the Visible property for the first panel is set to off and that for the other is set to on.
  3 comentarios
Savannah Morrissey Martin
Savannah Morrissey Martin el 11 de Mayo de 2018
Is this possible to do in app builder?
Geoff Hayes
Geoff Hayes el 13 de Mayo de 2018
Hi Savannah - I'm not sure..I'm still using R2014a.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by