home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / MiscTableWell.M < prev    next >
Encoding:
Text File  |  1998-03-31  |  2.0 KB  |  57 lines

  1. //=============================================================================
  2. //
  3. //  Copyright (C) 1995,1996,1997,1998 by Paul S. McCarthy and Eric Sunshine.
  4. //        Written by Paul S. McCarthy and Eric Sunshine.
  5. //                All Rights Reserved.
  6. //
  7. //    This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the authors
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14. //=============================================================================
  15. //-----------------------------------------------------------------------------
  16. // MiscTableWell.M
  17. //
  18. //    View class that draws a well where a column/row laid before dragging
  19. //    was started.
  20. //
  21. //-----------------------------------------------------------------------------
  22. //-----------------------------------------------------------------------------
  23. // $Id: MiscTableWell.M,v 1.3 98/03/30 00:02:00 sunshine Exp $
  24. // $Log:    MiscTableWell.M,v $
  25. //  Revision 1.3  98/03/30  00:02:00  sunshine
  26. //  v138.1: Now uses NSColor's "system" color for well rather than "gray".
  27. //  
  28. //  Revision 1.2  96/04/30  05:40:08  sunshine
  29. //  Ported to OpenStep 4.0 for Mach PR2.
  30. //-----------------------------------------------------------------------------
  31. #import "MiscTableWell.h"
  32.  
  33. @implementation MiscTableWell
  34.  
  35. - (BOOL)isOpaque { return YES; }
  36.  
  37. //-----------------------------------------------------------------------------
  38. // - initWithFrame:
  39. //-----------------------------------------------------------------------------
  40. - (id)initWithFrame:(NSRect)r
  41.     {
  42.     [super initWithFrame:r];
  43.     return self;
  44.     }
  45.  
  46.  
  47. //-----------------------------------------------------------------------------
  48. // - drawRect:
  49. //-----------------------------------------------------------------------------
  50. - (void)drawRect:(NSRect)r
  51.     {
  52.     [[NSColor scrollBarColor] set];
  53.     NSRectFill(r);
  54.     }
  55.  
  56. @end
  57.