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>wshadow() screen function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WSHADOW()                                                  Screen Function
 Purpose..: Define a window shadow
-------------------------------------------------------------------------------
 Syntax...: wShadow( <uWin>, <bShadow( [<cClr>][, <nType>] )> ) --> NIL

 Arguments: <uWin>   = the string identifier of the window
                       OR the reference to the window structure
                       returned as an array by wNew() or wArray().
                       If not passed, the function will operate on
                       the window in focus.

            <bShadow>= code block used to define a shadow.
                       The corners are taken from the window
                       definition. You can create your own shadow
                       method, if you prefer not to use the shadow
                       contained in FreshWin.

            [<cClr>] = color to be used for the shadow.
                       Default is to create a non-destructive shadow.

            [<nType>]= choice of shadow type. The default is S_FULL.

            Shadow Type Manifest Constants as found in FW_BOX.CH
            ---------------------------------------------------
            Value  FW_BOX.CH    Description
            ---------------------------------------------------
            1      S_FULL       Full size transparent shadows.
            2      S_HALF       Half size non-transparent shadows.
            ---------------------------------------------------

 Returns..: NIL

 Remark...: Defines a non-destructive shadow on the right and
            bottom edges of a box. This function will allow you
            to change the color of full height shadows.

            The function defines a shadow and wOpen() displays it.

 Source...: WSHADOW.PRG
-------------------------------------------------------------------------------
 Example..: The example assigns a black on black shadow.

    wNew   ( "Test", 3, 12, 14, 27, "W+/W" )
    ...
    wShadow( "Test", B_SHADOW( Clr2Attr( "N+/N" ), S_HALF ) )

 Note.....: If a shadow is specified past the boundries of MaxRow()
            and MaxCol(), the shadow will be truncated.

            As with all FreshWin window functions that alter the display,
            this function hides and redisplays automatically the mouse
            cursor if it is active.

See Also: Shadow()

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