Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - __color_enhcd enhanced color attribute http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 __color_enhcd       Enhanced color attribute
------------------------------------------------------------------------------
 Declaration
   color.hdr

 Syntax
   byte __color_enhcd

 Default
   WHITE_BLACK.

 Description
   The __color_enhcd system variable is a label for the
   __syscolor[ CLR_ENCHD ] system array element.

   Changing the contents of this variable makes it easy to modify the
   inverse attribute of a get field, or of other screen output which is
   displayed with the enhanced attribute.

   Modifying the contents of __color_enhcd is faster, and it
   requires less code than using the standard dBase command
   set color to. Saving the contents of __color_enhcd into a
   temporary variable makes it easy to later restore the original color
   value.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   // Save the current enhanded attribute, do a get using a different color,
   // and then restore the original attribute afterwards
   
   proc Test_color_enhcd
   vardef
      char( 20 ) cName
      byte       bColor
   enddef
   cName := "Erica"
   bColor := __color_enhcd
   __color_enhcd := CYAN_BLACK
   @ 10, 10 get cName picture "XXXXXXXXXXXXXXXXXXXX"
   read
   __color_enhcd := bColor
   endproc

   proc main
   Test_color_enhcd()
   endproc

See Also: __color_std __syscolor

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson