Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_saveatt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_SAVEATT()
 Save the attribute bytes of a specified screen region.
------------------------------------------------------------------------------

 Syntax

     FT_SAVEATT( <nTop>, <nLeft>, <nBottom>, <nRight>  ) -> cAttributes

 Arguments

    <nTop>, <nLeft>, <nBottom>, and <nRight> define the screen region.

 Returns

    A character string containing the screen attribute bytes for the
    specified region.  If the memory to store the return value could
    not be allocated, the function returns NIL.

 Description

    This function is similar to Clipper's SaveScreen(), except that it only
    saves the attribute bytes.  This is useful if you want to change the
    screen color without affecting the text.

    *** INTERNALS ALERT ***

    This function calls the Clipper internal __gtMaxCol to obtain the
    maximum column value for the current video mode.  If you're too gutless
    to use internals, then this function isn't for you.

 Examples

    // Save attributes of row 4
    cBuffer := FT_SAVEATT( 4, 0, 4, maxcol())

    // Save attributes from middle of screen
    cBuffer := FT_SAVEATT(10,20,14,59)

 Source: SAVEATT.ASM

 Author: Ted Means

See Also: FT_RESTATT()

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