Changeset 711 for trunk/src/read_GUI.m


Ignore:
Timestamp:
Feb 18, 2014, 10:11:11 AM (10 years ago)
Author:
sommeria
Message:

various improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_GUI.m

    r591 r711  
    9393    List=fields(UserData);
    9494    for ilist=1:numel(List)
    95         if isstruct(UserData.(List{ilist})) 
     95        if isstruct(UserData.(List{ilist}))% look for edit box with the tag UserData.(List{ilist})
    9696            heditbox=findobj(handle,'Tag',List{ilist},'Style','edit','Visible','on');
    9797            if isequal(numel(heditbox),1)
    9898                struct.(List{ilist})=UserData.(List{ilist});
     99            else% look for pushbutton with the tag UserData.(List{ilist})
     100                hpushbutton=findobj(handle,'Tag',List{ilist},'Style','pushbutton','Visible','on');
     101                if isequal(numel(hpushbutton),1)
     102                    struct.(List{ilist})=UserData.(List{ilist});
     103                end
    99104            end
    100105        end
Note: See TracChangeset for help on using the changeset viewer.