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 - dispdirect() print a string in screen colors http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 dispdirect()        Print a string in screen colors
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc dispdirect extern
   param value uint uRow, ;
         value uint uCol, ;
         const char cString

 Arguments
   uRow is the row position for the display.

   uCol is the column position for the display.

   cString is the string to print.

 Return
   None.

 Description
   The dispdirect() procedure prints a string at the specified screen
   location. The string is displayed in the current color of any given
   screen position, independently of the Force color settings.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_dispdirect
   vardef
      byte bColor
   enddef
   clear
   bColor := __syscolor[ CLR_STD ]
   __syscolor[ CLR_STD ] := BLUE_YELLOW
   dispdirect( 4, 0, "Force" )
   @ 4, 6 ?? "2.4"
   getkey()
   dispdirect( 4, 6, "4.0 compiler" ) // note: display follows screen color
   __syscolor[ CLR_STD ] := bColor
   getkey()
   endproc

   proc main
   Test_dispdirect()
   endproc

See Also: dispdirectpad()

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