Changeset 379 for trunk/src/fill_GUI.m
- Timestamp:
- Jan 27, 2012, 1:59:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fill_GUI.m
r368 r379 3 3 function errormsg=fill_GUI(Param,handles) 4 4 %------------------------------------------------------------------------ 5 6 5 errormsg=''; 7 6 fields=fieldnames(Param); … … 19 18 hh=[]; 20 19 input_data=Param.(fields{ifield}); 20 check_done=0; 21 21 if isfield(handles,fields{ifield}) 22 22 hh=handles.(fields{ifield}); 23 23 if strcmp(get(hh,'Type'),'uitable') 24 set(hh,'Visible','on') 24 25 set(hh,'Data',input_data) 25 break26 check_done=1; 26 27 end 27 28 elseif isnumeric(input_data) && isfield(handles,['num_' fields{ifield}]) 28 29 hh=handles.(['num_' fields{ifield}]); 29 30 end 30 if ~isempty(hh) 31 if ~isempty(hh)&& ~check_done 31 32 set(hh,'Visible','on') 32 33 % input_data 33 switch get(hh,' style')34 switch get(hh,'Style') 34 35 case {'checkbox','radiobutton','togglebutton'} 35 36 if isnumeric(input_data)
Note: See TracChangeset
for help on using the changeset viewer.