Changeset 379 for trunk/src/fill_GUI.m


Ignore:
Timestamp:
Jan 27, 2012, 1:59:18 AM (13 years ago)
Author:
sommeria
Message:

several bugs corrected
set_object.fig rationalized so that read_set_object is replaced by the rgeneral fct read_GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fill_GUI.m

    r368 r379  
    33function errormsg=fill_GUI(Param,handles)
    44%------------------------------------------------------------------------
    5 
    65errormsg='';
    76fields=fieldnames(Param);
     
    1918        hh=[];
    2019        input_data=Param.(fields{ifield});
     20        check_done=0;
    2121        if isfield(handles,fields{ifield})
    2222            hh=handles.(fields{ifield});
    2323            if strcmp(get(hh,'Type'),'uitable')
     24                set(hh,'Visible','on')
    2425                set(hh,'Data',input_data)
    25                 break
     26                check_done=1;
    2627            end
    2728        elseif isnumeric(input_data) && isfield(handles,['num_' fields{ifield}])
    2829            hh=handles.(['num_' fields{ifield}]);
    2930        end
    30         if ~isempty(hh)
     31        if ~isempty(hh)&& ~check_done
    3132            set(hh,'Visible','on')
    3233%             input_data
    33             switch get(hh,'style')
     34            switch get(hh,'Style')
    3435                case {'checkbox','radiobutton','togglebutton'}
    3536                    if isnumeric(input_data)
Note: See TracChangeset for help on using the changeset viewer.