Invoking parent GUI function from child GUI.
Show older comments
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 Comment
Alexantrou Serb
on 17 Apr 2015
Edited: Alexantrou Serb
on 17 Apr 2015
Accepted Answer
More Answers (1)
Alexantrou Serb
on 20 Apr 2015
0 votes
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!