FUNCTIONS CORE
ScreenAttr()
Return the numeric color attribute for a specified coordinate on the screen
Syntax
ScreenAttr( [nRow], [nCol] ) --> nAttributeArguments
nRow
nCol
Example
#if OS_LINUX
REQUEST GTXWC
#else
REQUEST GTWVT
#endif
PROCEDURE Main()
DispOutAt( 2, 40, "xDev", "GR+/B" )
Check( 'ScreenAttr( 2, 40 ) ', ScreenAttr( 2, 40 ), ColorToN( "GR+/B" ) )
Check( 'NToColor( ScreenAttr( 2, 40 ), .T. ) ', NToColor( ScreenAttr( 2, 40 ), .T. ), "GR+/B" )
Inkey( 0 )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput