GUI execution from .fig file
Mostrar comentarios más antiguos
I am testing a GUI that I built. The GUI works fine when it is called from the Command Window or when I click the "Run" button from within the .m file. However, when I try to operate the GUI from the .fig file, only some of the features work. Is this normal? Can you run GUIs from the .fig file? So far, the only code for the GUI is related to a pushbutton:
function pushbuttonBrowse_Callback(hObject, eventdata, handles)
FileName = uigetfile({'*.xls';'*.xlsx';'*.csv';'*.dat'});
guidata(hObject, handles)
set(handles.txtbxSelectFile,'String',FileName)
The pushbutton calls data from a spreadsheet and then displays the file name in a textbox. When the code doesn't work, it only calls the data, but will not display the file name. Your help is greatly appreciated!
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 6 de Abr. de 2012
0 votos
You cannot launch a GUI by starting from the .fig file.
Steven
el 9 de Abr. de 2012
0 votos
Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!