Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WBListBox:Init() Method
Construct a blistbox object
------------------------------------------------------------------------------

Syntax
WBListBox{ <oParent>, [ <nId> ] , [ <aParams> ] , [ <lCreate> ] }
             -->   SELF

Arguments
<oParent> is the parent (owner) window object.  Just as
<oParent> is the owner of the control object, the parent's
hWnd will be the actual owner of the control's window (if it
has a window on the screen).

<nId> is an optional number.  It will (eventually) default to
self:CreateId(), but you normally specify it as the same
value as in a dialog containing the control.

<aParams> is an array, normally set up by the @ ID ... BLISTBOX
command, in the form
        { <aCols>, <bGoTop>, <bGoBottom>, <bSkip>, <cAlias>,
          <hBFont>, <aUpdate>, <lGoTop> }

<lCreate> specifies whether the object's Create() method is
to be invoked immediately.  Usually you want the default (.F.).

Returns
SELF.

Description
This method initialises a browse list box (blistbox) control.
By default, this method will NOT create a window on the screen
(because controls are usually automatically created in dialogs).

Note: this class does not inherit from WListBox because its
properties and methods are not suitable.  However, it should
be implemented as a list box control in a dialog.  This occurs
automatically for dynamic controls/dialogs.

Example
// From SOURCE\OO\ODBCBROW.PRG:
@ Id IDD_BROWSE  Obj ::oB  BListBox                    ;
     Columns aCols                                     ;
     GoBottomBlock {| | ::oTable:GoBottom() }         ;
     GoTopBlock    {| | ::oTable:GoTop() }            ;
     SkipBlock     {|oB, n| DoSkip(oB, ::oTable, n) }


See Also: WndStyle @ ID ... BLISTBOX

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