/* $DOC$ $NAME$ ft_VidStr() $CATEGORY$ Video $ONELINER$ Display string on screen in specified attribute $SYNTAX$ ft_VidStr( , , [, ] ) -> NIL $ARGUMENTS$ and are the screen coordinates. is the string to be printed on the screen. is an integer representing the color attribute. The formula is: nFore + ( nBack * 16 ) ft_VidStr() will display the string in the current color if is not passed. $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to display a string of any ASCII characters on screen in a specified color attribute. This function is useful for constructing screens with a lot of text or repetitive screen prints where speed is important. $EXAMPLES$ ft_VidStr( 10, 20, "Enter Name :", 165 ) // This example will print the specified text at coordinates 10, 20 // in bright white on top of Magenta. $END$ */ /* $DOC$ $NAME$ ft_WrtChr() $CATEGORY$ Video $ONELINER$ Display character on screen $SYNTAX$ ft_WrtChr( , , , ) -> NIL $ARGUMENTS$ and are the screen coordinates. is the single character to print on the screen. is an integer representing the color attribute. The formula is: nFore + ( nBack * 16 ) $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to display a single ASCII character on screen in a specified color attribute. This function is useful for constructing screens with a lot of text or repetitive screen prints where speed is important. It is faster and requires less memory than ft_VidStr(). $EXAMPLES$ FOR nX := 1 TO MaxRow() FOR nY := 1 TO MaxCol() ft_WrtChr( nX, nY, "∙", ( nX - 1 ) + ( nY * 16 ) ) NEXT NEXT This example will write the ASCII character 249 TO every location ON SCREEN in every possible COLOR combination. It will recognize the status of SetBlink(). It uses direct video writes FOR speed. $END$ */ /* $DOC$ $NAME$ ft_CLS() $CATEGORY$ Video $ONELINER$ Clear screen $SYNTAX$ ft_CLS( , , , , ) -> NIL $ARGUMENTS$ , , and are the screen coordinates to clear. is an integer representing the color attribute. The formula is: nFore + ( nBack * 16 ) The default is black. $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to clear the screen at the given coordinates with the given color attribute. This does not change Clipper's color settings. It uses direct video writes for speed. $EXAMPLES$ ft_CLS( 0, 0, MaxRow(), MaxCol(), 165 ) // This example will clear the entire screen with the colors // bright white on magenta. $END$ */ /* $DOC$ $NAME$ ft_SetAttr() $CATEGORY$ Video $ONELINER$ Change color attributes of screen region $SYNTAX$ ft_SetAttr( , , , , ) -> NIL $ARGUMENTS$ , , , and are the coordinates of the screen region. is an integer representing the new color attribute. The formula is: nFore + ( nBack * 16 ) $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to change the colors of a specified region of the screen without disturbing any text. Uses direct video writes. $EXAMPLES$ ft_SetAttr( 0, 0, MaxRow(), MaxCol(), 95 ) // This example will change the entire screen's colors to bright white on // magenta without changing or overwriting any text on the screen. $END$ */ /* $DOC$ $NAME$ ft_RevAttr() $CATEGORY$ Video $ONELINER$ Reverse colors of specified screen coordinates $SYNTAX$ ft_RevAttr( , , , ) -> NIL $ARGUMENTS$ , , , and are the coordinates of the screen region. $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to reverse the color of a specified screen region without disturbing any text on the screen. This function will correctly reverse the color attributes in a region containing multiple color combinations. $EXAMPLES$ ft_RevAttr( 0, 0, MaxRow(), MaxCol() ) // This example will change the entire screen's colors to their reverse // attributes without changing or overwriting any text. $END$ */ /* $DOC$ $NAME$ ft_RevChr() $CATEGORY$ Video $ONELINER$ Reverse the color of a single character on the screen $SYNTAX$ ft_RevChr( , ) -> NIL $ARGUMENTS$ , are the screen coordinates of the character. $RETURNS$ NIL $DESCRIPTION$ This is a high speed function to reverse the color of a single character on the screen without changing the character itself. This function is the same as ft_RevAttr() except that it changes only one character on screen and hence is faster and uses less memory. $EXAMPLES$ ft_RevChr( 10, 20 ) // This example will change the text and background at 10, 20 to it's // reverse color attributes without changing or overwriting the // character itself. $END$ */