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>wzoom() screen function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WZOOM()                                                    Screen Function
 Purpose..: Zoom open, close or restore a window
-------------------------------------------------------------------------------
 Syntax...: wZoom( [<uWin>[, <nDirection>]] ) --> 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.

            [<nDirection>]= direction to zoom. The default state
                            is WZ_REST. Valid directions are:

            Zoom Manifest Constants as found in FW_MAIN.CH
            ----------------------------------------------------
            Value  FW_MAIN.CH       Description
            ----------------------------------------------------
             1     WZ_REST          Restore to original size.
             2     WZ_MIN           Minimize to an icon.
             3     WZ_MAX           Maximize to the full screen.
            ----------------------------------------------------

 Returns..: NIL

 Remark...: wZoom() is smart enough to check the status of a
            window when invoked. If you want to change the window,
            wZoom() will step to the next size in the sequence:
            icon ( WZ_MIN ), original size ( WZ_REST ) and full screen
            ( WZ_MAX ) or vice-versa. That is, the window will always
            be restored to the original size between an icon and the
            full screen.

 Source...: WZOOM.PRG
-------------------------------------------------------------------------------
 Example..: . The example restores the window, "Windo1",
              if it had been shrunk to an icon.

              wOpen( "Windo1" )
              if wIsMin( "Windo1" )
                 wZoom( "Windo1", WZ_REST )
              endif


See Also: wMove() wReSize() wShift() wNew()

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