function Status = status(Constr,Context)
%STATUS  Generates status update when completing action on constraint

%   Author(s): P. Gahinet
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.3 $  $Date: 2004/12/26 21:51:36 $

switch Context
   case 'hover'
      % Status when hovered
      Description = sprintf('Design constraint: damping > %.3g (overshoot < %.3g %s).',...
         Constr.Damping,Constr.overshoot,'%');
      Status = sprintf('%s\nLeft-click and drag to move this constraint.',Description);
   otherwise
      % Status update when completing move
      if strcmpi(Constr.Format,'damping')
         Status = sprintf('Requires damping of at least %0.3g.',Constr.Damping);
      else
         Status = sprintf('Requires overshoot of at most %0.3g %s.',Constr.overshoot,'%');
      end
end
	
	