Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Hervé Chubaka Bagalwa
Hervé Chubaka Bagalwa le 13 Mai 2011
Clôturé : MATLAB Answer Bot le 20 Août 2021
[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 commentaire
Arturo Moncada-Torres
Arturo Moncada-Torres le 13 Mai 2011
Regarding Question 1, could you provide more information? Where is it called, what do you do before, etc.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by