www.pudn.com > Closid30.rar > CLLIGHT.M, change:1997-06-13,size:1255b


function cllight(opt) 
% function cllight(opt) 
% 
% Changes highlighted frame in identification screen 
% opt=1 Changes light from signal construction to estimation 
% opt=2 Changes light from estimation to copy       
% opt=3 Puts light out 
 
% Functions called: clsetcol 
 
% 01-11-1996. Originally named chlight 
% (c) Edwin van Donkelaar, Paul Van den Hof 
% Mechanical Engineering Systems and Control Group 
% Delft University of Technology 
% Last update: 13-06-1997 
 
[frmcol,txtcol,edicol,pshcol,radcol,axscol,c7,c8,c9,c10,... 
      modcol,edtcol,pubcol,putcol,chbcol,chtcol,txbcol,pstcol]=clsetcol; 
 
if opt==1 
  if  isempty(findobj(0,'Name','Error Dialog')) 
    h1=findobj(0,'tag','DERIVEFRAME'); 
    h2=findobj(0,'tag','ESTIMATEFRAME'); 
    set(h1,'foreground',edtcol) 
    set(h2,'foreground',txtcol) 
    h3=findobj(0,'tag','YUIMPMESSAGE'); 
    set(h3,'string','Signals constructed. Press close button.'); 
  else 
    clerrdia('WARNING: one or more error dialog boxes not closed') 
  end 
end 
if opt==2 
  h1=findobj(0,'tag','COPYFRAME'); 
  h2=findobj(0,'tag','ESTIMATEFRAME'); 
  set(h1,'foreground',txtcol) 
  set(h2,'foreground',edtcol) 
end 
if opt==3 
  h1=findobj(0,'tag','COPYFRAME'); 
  set(h1,'foreground',edtcol) 
end