PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SetHiLite
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
  Syntax: void SetHiLite( PFILE pfFile, rn range, int color );
 
  See:    AddAColor, GetColor, PutColor, SetColor
          Using Colors in Extensions
 
     SetHiLite specifies a range of text to be highlighted. The color
     used for highlighting is applied the next time the screen is
     updated. The highlighting disappears the next time a non-cursor-
     movement function is used.
 
     The area to be highlighted is given by <range>, and the file by
     <pfFile>. Note that the range is processed as a block, not a
     stream. If you want to color a stream, you must use SetHiLite on
     the first line, the center lines, and the last lines separately.
     See: rn Type
 
     The <color> is a predefined color constant or a color index
     returned by AddAColor.
     See: Color Constants
                                    -♦-