Changeset 1037 for trunk/src/uigetfile_uvmat.m
- Timestamp:
- May 1, 2018, 4:31:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uigetfile_uvmat.m
r1031 r1037 73 73 end 74 74 75 hfig=findobj(allchild(0),'tag',option); 76 if isempty(hfig) 75 hfig=findobj(allchild(0),'tag',option);%look for existing browser fig 76 if isempty(hfig)% create the browser fig if it does not exist 77 77 set(0,'Unit','points') 78 78 ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right … … 149 149 function OK_Callback(option,filter_ext,hObject,event) 150 150 set(hObject,'backgroundColor',[1 1 0])% indicate button activation 151 hfig=get(hObject,'parent');%handle of the fig 151 fig_struct=get(hObject,'parent'); 152 if isstruct(fig_struct);%recent Matlab 153 hfig=fig_struct.Number; 154 else 155 hfig=fig_struct; 156 end 152 157 htitlebox=findobj(hfig,'tag','titlebox'); % display the current dir name 153 158 DirName=get(htitlebox,'String'); … … 192 197 end 193 198 set(hObject,'backgroundColor',[0 1 0])% indicate end button activatio 194 fig_struct=get(hObject,'parent');195 if isstruct(fig_struct);%recent Matlab196 uiresume(fig_struct.Number)197 else198 uiresume(fig_struct)199 end200 199 201 200 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.