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>attach ... get as listbox using</b> dfctrl.ch http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ATTACH ... GET AS LISTBOX USING                                 DFCTRL.CH   
Makes a new control of type List Box
------------------------------------------------------------------------------
Syntax:

     ATTACH <cId> TO <aParent> GET AS LISTBOX USING <oList> ;
                  [PAGE <nPage>] ;
                  [ACTIVE <uActive>] ;
                  [REFRESHID <cRID>]

Parameters:

     <cId>      Shows the name of the control 
     <aParent>  Item of objects form in which the controls are added 
     <oList>    Name of control (objects) List Box created 
     PAGE <nPage> Number of page where is the control If nPage = 0 the
                control is available on all pages of management
     ACTIVE <uActive> Permit to specify in which condition the control is
                active
     REFRESHID <cRID> Show the  groups of refresh which contain the control

Description:

     Makes a new control of type List Box. The control List box, also if
     used as control during design, really is an objects of type TBrowse.
     Is used for show homogeneous groups of data in rows (records) and
     columns (fields)
     
     For manage this CONTROL from program is necessary to use the function
     tbCTRLArr().This function will give the array that forms the CONTROL.
     With modification of this array is possible change during RUN-TIME
     characteristic of the CONTROL.

Example:

     Example 1 :
     
     Value of items of array when CONTROL is of
     type LISTBOX:
     
     #include "DFCTRL.CH"
     
     LOCAL aCTRL := tbCTRLArr( oWin, "LSB0001" )
     
     aCTRL[FORM_CTRL_TYP      ] // Type CONTROL
     aCTRL[FORM_CTRL_ID       ] // ID of control
     aCTRL[FORM_CTRL_RID      ] // Refresh ID of CONTROL
     aCTRL[FORM_CTRL_PAGE     ] // Page of CONTROL
     aCTRL[FORM_CTRL_STABLE   ] // Flag for stable fhe CONTROL
     aCTRL[FORM_CTRL_DISPLAYIF] // CodeBlock of "Showing only if ..."
     
     aCTRL[FORM_LIST_OBJECT   ] // Object
     aCTRL[FORM_LIST_ACTIVE   ] // Condition of activation
     aCTRL[FORM_LIST_CLRNULL  ] // Color of disactivation
     
     Example 2 :
     
     #include "DFCTRL.CH"
     
     ATTACH "oRighe" TO oWin:W_CONTROL GET ;
       AS LISTBOX USING oRighe    ;// Init List-Box
       PAGE  1                    ;// Pagina
       ACTIVE {||cState $ "i" }    // State of activation


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