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

  1. //=============================================================================
  2. //
  3. //    Copyright (C) 1995-1996 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. // MiscTableViewPS.psw
  17. //
  18. //    Fill rectangles with a "dash" pattern.  Useful for drawing dotted
  19. //    outlines which frame focused cells.
  20. //
  21. //-----------------------------------------------------------------------------
  22.  
  23. //-----------------------------------------------------------------------------
  24. // MISC_TV_initps
  25. //-----------------------------------------------------------------------------
  26. defineps MISC_TV_initps()
  27.     7 dict
  28.     dup begin
  29.     /PatternType 1 def
  30.     /PaintType 1 def
  31.     /TilingType 1 def
  32.     /BBox [0 0 2 2] def
  33.     /XStep 2 def
  34.     /YStep 2 def
  35.     /PaintProc
  36.         { begin 0 setgray 0 0 1 1 rectfill 1 1 1 1 rectfill end } def
  37.     end
  38.     matrix makepattern
  39.     userdict exch /MISC_TV_dottedpattern exch put
  40. endps
  41.  
  42.  
  43. //-----------------------------------------------------------------------------
  44. // MISC_TV_dashedrects
  45. //-----------------------------------------------------------------------------
  46. defineps MISC_TV_dashedrects( float rects[n]; int n )
  47.     gsave
  48.     MISC_TV_dottedpattern setpattern
  49.     rects rectfill
  50.     grestore
  51. endps
  52.