From: pedro moreno on
Hello matlab's partners,
Since several days, I have the next challenge. Imagine that I have a main GUI (GUI_1), with a pushbutton (button_main), which returns other GUI (GUI_2). This GUI_2 has two button (acept and cancel), and info about config. Cases:
If user clicks in acept (in GUI_2), info is saved, GUI_2 is closed, and button_main is set to green.
If user clicks in cancel (in GUI_2), info isn't saved, GUI_2 is closed, and button_main doesn't change the default colour.
Question: ¿How does the program know if user clicked in acept or cancel? (REMEMBER, colour is only set after GUI_2 is closed).
I's not easy for me, but I'm sure that it's a stupid thing for you, ¿could you help me, please? Thanks in advance.