home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / pascal / swag / color.swg / 0017_Background-Foreground.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1993-05-28  |  187 b   |  10 lines

  1. YZ> Does anyone know how to "extract" the Foreground and
  2. YZ> background colours from
  3. YZ> TextAttr?
  4.  
  5. or, For simplicity, use:
  6.  
  7.   FC := TextAttr MOD 16;
  8.   BC := TextAttr div 16;
  9.  
  10.