sauwen
09-09-2008, 02:09 AM
Hello!
I've been having trouble with this for quite a while.. Hopefully some o
you will be able to help me. :)
I'm trying to make a gui with a menubar that has the option to get
directory from a file on the computer and then input that into a textbox.
Here's the bulk problem so far:
set(handles.fig,'MenuBar','none');
menu = uimenu(handles.fig ,'Label','File');
submenu1 = uimenu(menu,'Label','Open','CallBack',@open)
function open(gcf,event_data,handles)
dirr=uigetdir('C:\');
return
end
I don't understand how to return dirr back to the main function and int
the textbox. I also tried set(handles.dataset,'String',dirr); in th
function open() where the handles.dataset is the textbox.
Any help is appreciated! Thanks.
I've been having trouble with this for quite a while.. Hopefully some o
you will be able to help me. :)
I'm trying to make a gui with a menubar that has the option to get
directory from a file on the computer and then input that into a textbox.
Here's the bulk problem so far:
set(handles.fig,'MenuBar','none');
menu = uimenu(handles.fig ,'Label','File');
submenu1 = uimenu(menu,'Label','Open','CallBack',@open)
function open(gcf,event_data,handles)
dirr=uigetdir('C:\');
return
end
I don't understand how to return dirr back to the main function and int
the textbox. I also tried set(handles.dataset,'String',dirr); in th
function open() where the handles.dataset is the textbox.
Any help is appreciated! Thanks.