Invoking parent GUI function from child GUI.
Ältere Kommentare anzeigen
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 Kommentar
Alexantrou Serb
am 17 Apr. 2015
Bearbeitet: Alexantrou Serb
am 17 Apr. 2015
Akzeptierte Antwort
Weitere Antworten (1)
Alexantrou Serb
am 20 Apr. 2015
0 Stimmen
Kategorien
Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!