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>whowclose() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WHOWCLOSE()                                                Window Function
 Purpose..: Define a window closing method
-------------------------------------------------------------------------------
 Syntax...: wHowClose( <uWin>, <bClose( [<nDelay>] )> ) --> NIL

 Arguments: <uWin>      = the string identifier of the window
                          OR the reference to the window structure
                          returned as an array by wNew() or wArray().
                          There is no default.

            <bClose()>  = code block used as a closing method.
                          You can set the delay rate, the lower
                          the number the faster the opening.

            bClose Translate Directive as found in FW_BOX.CH
            ---------------------------------------------------------
            FW_BOX.CH         Description
            ---------------------------------------------------------
            B_IMPLODEDN( n )  Implode from the top down;      delay n
            B_IMPLODEUP( n )  Implode from the bottom up;     delay n
            B_IMPLODERT( n )  Implode from right to left;     delay n
            B_IMPLODELT( n )  Implode from left to right;     delay n
            B_VBLIND( n )     Use a vertical blind effect;    delay n
            B_IMPLODE( n )    Implode the window to center;   delay n
            ---------------------------------------------------------
            B_EXPLODEDN( n )  Explode from the top down;      delay n
            B_EXPLODEUP( n )  Explode from the bottom up;     delay n
            B_EXPLODERT( n )  Explode from right to left;     delay n
            B_EXPLODELT( n )  Explode from left to right;     delay n
            B_EXPLODE( n )    Explode the window from center; delay n
            ---------------------------------------------------------

            [<nDelay>]  = cycle delay for shuting the window.
                          A small number, say, 1 will shut a
                          window fast whereas a high number,
                          say, 60 will result in a slower closing.
                          The default is to use no delay.

 Returns..: NIL

 Remark...: The delay rate is not hardware-related. Rather it is a
            sliding scale to allow you to vary the delay in closing
            or opening. A rate of, say, 30, will be no faster
            on a '486 than it would be on a '286 machine.

 Source...: WHOW.PRG
-------------------------------------------------------------------------------
 Example..: . The example uses wHowClose() to have the
              instance created by wNew() implode up when closing.

            wNew     ( "Intro1", 6, 4, 14, 70, "GR+/B" )
            wHowOpen ( "Intro1", B_EXPLODEDN( 30 ) )
            wHowClose( "Intro1", B_IMPLODEUP( 30 ) )
            wShadow  ( "Intro1", B_SHADOW() )

 Note.....: Window defaults for the opening and closing of windows
            can be overridden with the optional parameters of
            wOpen() and wClose().

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

See Also: wHowOpen() wClose() wKill() wKillAll()

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