Invoking parent GUI function from child GUI.
Mostra commenti meno recenti
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 Commento
Alexantrou Serb
il 17 Apr 2015
Modificato: Alexantrou Serb
il 17 Apr 2015
Risposta accettata
Più risposte (1)
Alexantrou Serb
il 20 Apr 2015
0 voti
Categorie
Scopri di più su Entering Commands in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!