implement back button in matlab

Hi , everybody how can I implement a back button in which when I go to another gui and get back to the first gui I still have the information the user had entered

Respuestas (1)

Stalin Samuel
Stalin Samuel el 8 de Abr. de 2016

0 votos

6 comentarios

Saad mohammad
Saad mohammad el 8 de Abr. de 2016
thank you , but I want to implement a back button so when I go to another gui and get back to the first gui I want all the information that the user have entered to be there
Stalin Samuel
Stalin Samuel el 8 de Abr. de 2016
I am not sure .but using global variable may help you.Refer here
Walter Roberson
Walter Roberson el 8 de Abr. de 2016
All information that the user previously entered in the first GUI to still be in the first GUI, or all information that the user entered in the second GUI to have been copied to the first GUI? If you mean the second of those then have the button set() the appropriate String or Value for the appropriate fields.
I do not recommend global for this.
Saad mohammad
Saad mohammad el 10 de Abr. de 2016
thank you walter , but actually I mean the first case I need the information from gui1 to be still there when I get back to it even when I close it
Walter Roberson
Walter Roberson el 10 de Abr. de 2016
Information in a GUI will never still be there after you close the GUI. If you need the information to still be there, then set the GUI 'visible' 'off' during the time you do not want it displayed, and set 'visible' 'on' when you want to see it again.
When you close a GUI, the graphics objects for it are destroyed and would need to be rebuilt and have their values set as appropriate.
Saad mohammad
Saad mohammad el 11 de Abr. de 2016
I think the visible off will work, thank you walter

Iniciar sesión para comentar.

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Abr. de 2016

Comentada:

el 11 de Abr. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by