Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Main GUI dissapears when another pops up and how to print onto the GUI?

1 回表示 (過去 30 日間)
Hervé Chubaka Bagalwa
Hervé Chubaka Bagalwa 2011 年 5 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
[EDIT: Fri May 13 03:00:26 UTC 2011 Reformat - MKF]
Hello,
I have the GUI code below:
function varargout = User_Interface(varargin)
...
function User_Interface_OpeningFcn(hObject, eventdata, handles, varargin)
handles.val = 1;
...
function radiobutton1_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 1;
% Save the handles structure.
guidata(hObject,handles)
end
function radiobutton2_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 2;
% Save the handles structure.
guidata(hObject,handles)
end
function radiobutton3_Callback(hObject, eventdata, handles)
if(get(hObject,'Value')== 1)
handles.val = 3;
% Save the handles structure.
guidata(hObject,handles)
end
function pushbutton1_Callback(hObject, eventdata, handles)
switch(handles.val)
case 1
InputOneImage
%This is a name of a file
case 2
InputMultipleImages
%This is a name of a file
case 3
Leukemia
%This is a name of a file
end
When i run it, there are two problems:
1) On one of the files i call, there is something that looks like this:
directory = uigetdir;
The small GUI that pops closes my main GUI. I would like to keep the main GUI open. How can i do that
2) I basic of using 'static text' but, i really don't know how to print something on the GUI as the program is running. I would like to print something like this on my GUI:
starting stage one
starting stage two
...
and so on
Thank you for your help
  1 件のコメント
Arturo Moncada-Torres
Arturo Moncada-Torres 2011 年 5 月 13 日
Regarding Question 1, could you provide more information? Where is it called, what do you do before, etc.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by