Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>gfattr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GFATTR()

    GFATTR() allows you to implement the popular "shadow effect." is
    written in Assembler rather than clipper for performance purposes
    (making it app. 100 times faster).  Special thanks are in order for
    Ted Means, who wrote it!

    Syntax

    GFAttr( <nTop>, <nLeft>, <nBottom>, <nRight>, <nAttr> )

    Parameters

    <nTop>    is the top row of the shadow area.
    <nLeft>   is the upper left column of the shadow area.
    <nBottom> is the bottom row of the shadow area.
    <nRight>  is the lower right column of the shadow area.
    <nAttr>   is the screen attribute to use for drawing the shadow.

    Return Value

    NIL

    Clipper 5.0 Notes

    This function uses several Clipper internal routines.  The use of
    the internals helps to make GFATTR() more well-behaved. Clipper's
    display context is not violated -- that is, if you use DISPBEGIN()
    before drawing the shadow, it will not appear until the
    corresponding call to DISPEND().  This makes for much smoother
    screen I/O if you have several screen objects that you wish to
    shadow.

    Examples

    GFAttr(10, 10, 20, 50,  8)  // draw dim shadow  
    GFAttr(10, 20, 20, 40, 47)  // draw green shadow

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