From: netalee efrat on
Hello,
My question is regarding the GUI. In one of my codes i call another sub GUI, like that: "data_no_BCG=BCG_removal_gui(data);"
but in order to get "data_no_BCG" the user have to press a few callbacks in the sub GUI, and in the meantime i have more code after the "data_no_BCG=BCG_removal_gui(data);" command that i want it to wait until the user finish what he's doing in the sub GUI in order to get the right "data_no_BCG". as far as i understand, the wait functions hold all commands even if they are made from another GUI, right?
I hope i'm beeing clear and that you could help me.
Thank you
From: Steven Lord on

"netalee efrat" <netefrat(a)gmail.com> wrote in message
news:hs5t7c$dno$1(a)fred.mathworks.com...
> Hello,
> My question is regarding the GUI. In one of my codes i call another sub
> GUI, like that: "data_no_BCG=BCG_removal_gui(data);" but in order to get
> "data_no_BCG" the user have to press a few callbacks in the sub GUI, and
> in the meantime i have more code after the
> "data_no_BCG=BCG_removal_gui(data);" command that i want it to wait until
> the user finish what he's doing in the sub GUI in order to get the right
> "data_no_BCG". as far as i understand, the wait functions hold all
> commands even if they are made from another GUI, right?

Take a look here:

http://www.mathworks.com/access/helpdesk/help/techdoc/creating_guis/f5-1002439.html

You will need to have BCG_removal_gui call UIWAIT in its Output function.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ