FUNCTIONS CORE

ClWin()

Clear the characters and colors in a screen area

Syntax

Signature
ClWin( [nTop], [nLeft], [nBottom], [nRight] ) --> cNull

Arguments

nTop

nLeft

nBottom

nRight

Example

ClWin.prg
#if OS_LINUX
   REQUEST GTXWC
#else
   REQUEST GTWVT
#endif

PROCEDURE Main()

   SetClearA( "N/W" )
   SetClearB( "." )
   ClWin( 2, 40, 8, 70 )

   Check( 'ScreenAttr( 5, 50 ) ', ScreenAttr( 5, 50 ), ColorToN( "N/W" ) )

   Inkey( 0 )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output