![]() |
[ Home | SDTools |
SDT |
Sales ] [ Support | Services | Publications] |
Known bugs for SDT 4.0
% Close figure and button figure - - - - - - - - - - - - - - - - - - - - - - -
elseif comstr(Cam,'closefig')
if ~isempty(gcbo)
co=gcbo;while ~any(strcmp(get(co,'type'),{'figure','root'}))
co=get(co,'parent');
end
if co~=0 cf = get(co,'userdata'); else cf=get(gcf,'userdata'); end
else cf=get(gcf,'userdata'); end
if ~isa(cf,'sdth') & ~isempty(gcbo) & comstr(get(gcbo,'type'),'figure')
delete(gcbo);
else opt=cf.opt; st = cf.type;
if comstr(st,'FeplotFig')|comstr(st,'IiplotFig')
if opt(1,2)&ishandle(opt(1,2)) delete(opt(1,2)); end
if opt(1)&ishandle(opt(1))
delete(get(opt(1),'children'));delete(opt(1));
end
sdtdef('cf',0);
else delete(gcbo);warning('Improper COMGUI CLOSEFIG'); end
end
r1 = in2(i1(j1),5:7)-in3(j1,5:7);r2 = in2(i1(j1),1)+[1:6]'/100;