Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_gtiscolor()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gtIsColor()
 Determine if the current screen display has color capability
------------------------------------------------------------------------------
 C Prototype

     #include "gt.api"
     BOOL _gtIsColor(void)

 Returns

     _gtIsColor() returns TRUE (1) if a color screen display
     is detected; otherwise, the function returns FALSE (0).

 Description

     _gtIsColor() lets you make decisions about the type of screen attributes
     to assign (color or monochrome) by giving you information about the type
     of screen display being used.  Note that some monochrome adapters with
     graphics capability return TRUE (1).

 Examples

     .  This example uses _gtIsColor() in an if decision block to
        display the statement "Color system" on color screens only:

        #include "gt.api"
        .
        .
        .
           if ( _gtIsColor() )
           {
              _gtWriteAt( 0, 0, "Color screen",  12 );
           }
        .
        .
        .

 Files  Library is CLIPPER.LIB, header file is Gt.api.


See Also: _gtColorSelect() _gtGetColorStr() _gtSetColorStr()

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