Ignore:
Timestamp:
May 1, 2018, 4:31:01 PM (3 years ago)
Author:
sommeria
Message:

miscellaneous adaptations to opendap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uigetfile_uvmat.m

    r1031 r1037  
    7373end
    7474
    75 hfig=findobj(allchild(0),'tag',option);
    76 if isempty(hfig)
     75hfig=findobj(allchild(0),'tag',option);%look for existing browser fig
     76if isempty(hfig)% create the browser fig if it does not exist
    7777    set(0,'Unit','points')
    7878    ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right
     
    149149function OK_Callback(option,filter_ext,hObject,event)
    150150set(hObject,'backgroundColor',[1 1 0])% indicate button activation
    151 hfig=get(hObject,'parent');%handle of the fig
     151fig_struct=get(hObject,'parent');
     152if isstruct(fig_struct);%recent Matlab
     153    hfig=fig_struct.Number;
     154else
     155    hfig=fig_struct;
     156end
    152157htitlebox=findobj(hfig,'tag','titlebox');  % display the current dir name 
    153158DirName=get(htitlebox,'String');
     
    192197end
    193198set(hObject,'backgroundColor',[0 1 0])% indicate end button activatio
    194 fig_struct=get(hObject,'parent');
    195 if isstruct(fig_struct);%recent Matlab
    196 uiresume(fig_struct.Number)
    197 else
    198    uiresume(fig_struct)
    199 end
    200199
    201200%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.