[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson