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>viewclose() event function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  VIEWCLOSE()                                                 Event Function
 Purpose..: Close a view window
-------------------------------------------------------------------------------
 Syntax...: viewClose( <aLook> ) --> NIL

 Arguments: <aLook>   = array returned by viewNew() which
                        contains all the elements to create and
                        display text in a view window.

 Returns..: NIL

 Remark...: The function empties the array passed as a parameter.

 Source...: WVIEW.PRG
-------------------------------------------------------------------------------
 Example..: . The example stashes the returned array of
              viewNew() in the cargo slot of a window for
              future viewing. A loop is set up to process the READ.ME
              file. Until the Escape key is pressed, you can input
              an event via the keyboard or a mouse. The function will
              process it, if recognized. Otherwise it waits for the next
              event. Once done, the array is emptied and the window closed.

        if isFile( "READ.ME" )
          wOpen( "ShoRead" )
          wCargoPut( "ShoRead", "V_DATA", viewNew( "ShoRead", "READ.ME" ) )
        endif
        ...
        while viewUpdate( getEvent(), wCargoGet( "ShoRead", "V_DATA" ) )
        enddo
        ...
        viewClose( wCargoGet( "ShoRead", "V_DATA" ) )
        wClose( "ShoRead" )

See Also: wView() viewNew() viewUpdate()

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