Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>getattrfg() video function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  GETATTRFG()                                                 Video Function
 Purpose..: Grab the screen location foreground color number
-------------------------------------------------------------------------------
 Syntax...: GetAttrFG( <nRow>, <nCol> ) --> nClrFore

 Arguments: <nRow>     = row on the screen.
            <nCol>     = column on the screen.

 Returns..: nClrFore is the integer representing a color attribute.

 Remark...: It is a high speed function used to pick off the
            foreground color attribute at the given co-ordinates.
            It does not change Clipper's color settings.

 Source...: VIDREAD.C
-------------------------------------------------------------------------------
 Example..: The example will grab the foreground of a point
            of the screen. Like all of these functions, it uses direct
            video writes for speed.

                nClrFront := GetAttrFG( 4, 9 )

See Also: GetAttrBG() GetAttr() GetChar()

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