Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfwin()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfWin()
Creates a dBsee window at run-time
------------------------------------------------------------------------------
Syntax:

     dfWin( [<nTop>], [<nLeft>], [<nBottom>], [<nRight>],;
            [<bKey>], [<bFilter>], [<bBreak>], [<cInt>],;
            [<aCol>], [<aMtd>], [<bSys>],;
            [<cAddAct>] ) --> NIL

Parameters:

     <nTop>, <nLeft>, <nBottom>, <nRight> Window coordinates. By default
     the entire screen is considered
     <bKey>     Key expression. By default the 1st record will be
     considered
     <bFilter>  Filter. By default all records will be retrieved {||.T.}.
     <bBreak>   Break condition. By default, it is EOF() {||.F.}.
     <cInt>     Window title. The default is "".
     <aCol>     Columns array. It must have the following structure: { {
     cDesc, bBlock2See } , { cDesc1, bBlock2See1 }  } Each
     element is a two-elements array. The first is the column
     title, and the second is the column expression. By default,
     there will be so many columns as the file fields.
     <aMtd>     Array of methods. By default, the array is empty.
     <bSys>     SYS block. It is called in three modes:
     #include "dfWin.ch"
     +-------------------------------------------------------+
     |   #define             | # | Description               |
     |-----------------------+---+---------------------------|
     |   WO_EVENT_ACTIVATE   | 1 | Before Display            |
     |   WO_EVENT_INKEY      | 2 | After inkey               |
     |   WO_EVENT_EXIT       | 3 | Exiting the function      |
     +-------------------------------------------------------+ The SYS
     function must always return .T.; if it returns .F.
     (allowed only in the inkey phase) the Window is immediately
     closed.
     <cAddAct>  More quitting actions. By default, no action is added to
     the standard "esc-wri" actions (Esc e F10).

Returns:

     NIL

Description:

     Activates a dBsee Window, with redefined actions and mouse handling
     facilities.

Example:

     USE Forni NEW    // Open a file
     USE Cli   NEW    // Open a file
     dfWin()          // Display it
     FORNI->(dfWin()) // Display an other file

See also:

     ddWin()

See Also: ddWin()

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