Invoking parent GUI function from child GUI.
Mostrar comentarios más antiguos
Hallo, I have a question regarding passing information and callbacks between parent and child GUIs. By way of a minimal example:
Suppose I have a parent GUI MAIN and a child GUI MOD. I then call the child from its parent. Now MOD will run and do its thing. Eventually it will generate some data, let's say a randomly generated number called Answer. What I want is that as soon as Answer is computed, MOD should be able to pass that value back to MAIN and then call a function in MAIN that reacts in some way to the value of Answer, e.g. squares Answer and displays that on the console.
I must stress that it is important that the parent GUI is called rather than another instance of it. In a more practical example Answer would have to interact with data already in the parent GUI and then update the data in the main GUI for further use.
Is such set-up possible?
Many thanks.
1 comentario
Alexantrou Serb
el 17 de Abr. de 2015
Editada: Alexantrou Serb
el 17 de Abr. de 2015
Respuesta aceptada
Más respuestas (1)
Alexantrou Serb
el 20 de Abr. de 2015
0 votos
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!