Hello everyone,
I am trying to send data (i.e. user input inside text field) between two different GUI's, bypassing any intermediate GUI. I created a simple GUI to accomplish this after reading multiple forums and reading the Matlab documentation, but I am still having problems. The GUI I created using GUIDE, has a static text box in the "main" GUI. Then you press a push button to move to an "intermediate" GUI that opens a "third" GUI. Finally, the last GUI has a input text box that would change the value of the static text in the "main" GUI.
From everything I read, I believe the best way to accomplish this is by using setappdata and getappdata.
I am using the following code in the opening function:
% Set waiting flag in appdata
setappdata(handles.figure1,'waiting',1)% UIWAIT makes GUI wait for user response (see UIRESUME)
uiwait(handles.figure1);
and I am using something like the following to move to the next GUI2:
GUI2('GUI2', handles.figure1);
to move back to previous GUI I use in the close request function:
uiresume(hObject); %I want to change this line so it goes back to main not the previous GUI
How can I move to the main GUI from the third GUI, skipping the intermediate GUI?
Thank you in advance for any help provided.
Best Answer