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>wcanclose() window function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  WCANCLOSE()                                                Window Function
 Purpose..: Verify whether a window can be closed
-------------------------------------------------------------------------------
 Syntax...: wCanClose( [<uWin>] ) --> lCanClose

 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.

 Returns..: <L> True | False depending upon the parameter setting.

 Remark...: The function works whether the window is open or not.

            The function is an #translate directive:

            #xtranslate wCanClose( <uWinID> ) ;
                          => ;
                          ( wSet( <uWinID>, _WSET_CANCLOSE ) )

 Source...: FW_MAIN.CH
-------------------------------------------------------------------------------
 Example..: . The example checks to make sure that the window
              cannot be closed by a mouse click or keyboard entry
              while a READ is done. Earlier, in the program you
              had to have disabled the closing feature using wSet().
              Later, you may want to enable the closing feature.

            if wCanClose() == FALSE
                 ...                    // lots of GET stuff
                 READ MOUSE IN WINDOW
            endif

See Also: wSet() wCanMove() wCanSize() wCanZoom()

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