本文共 1260 字,大约阅读时间需要 4 分钟。
方法是将所有控件的Units都改成normalized。
注意所有控件的Postion都是相对于屏幕左下角而言的。
configdir = get(handles.projectFolder_editText,'String');remote_folder = get(handles.remoteFolder_editText,'String');configdir_HE = get(handles.configdir_HE_editText,'String');configdir_LC = get(handles.configdir_LC_editText,'String');seqAlloc = get(handles.seqAlloc_pushbutton,'UserData');seqAllocTable = get(handles.seqAlloc_table,'Data');configdir_prefixHE = get(handles.prefix_editText, 'String');save settings.mat configdir remote_folder configdir_HE configdir_LC seqAlloc seqAllocTable configdir_prefixHE;% Hint: delete(hObject) closes the figuredelete(hObject);
% Update handles structureguidata(hObject, handles);if exist('settings.mat', 'file') load settings.mat; set(handles.projectFolder_editText,'String', configdir); set(handles.remoteFolder_editText,'String', remote_folder); set(handles.configdir_HE_editText,'String', configdir_HE); set(handles.configdir_LC_editText,'String', configdir_LC); set(handles.seqAlloc_pushbutton,'UserData', seqAlloc); set(handles.seqAlloc_table,'Data', seqAllocTable); set(handles.prefix_editText, 'String', configdir_prefixHE);end
转载地址:http://athai.baihongyu.com/