Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>listbox xbase commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ListBox xBase Commands
--------------------------------------------------------------------------------
             [ <multi: MULTI, MULTIPLE, MULTISEL> ] ;
             [ <sort: SORT> ] ;

 Creating a ListBox   @ <nRow>, <nCol> LISTBOX [ <oLbx> VAR ] <cnVar> ;
 from source code        [ ITEMS | PROMPTS <aList>  ] ;
                         [ SIZE <nWidth>, <nHeight> ] ;
                         [ ON CHANGE <uChange> ] ;
                         [ ON [ LEFT ] DBLCLICK <uLDblClick> ] ;
                         [ OF | WINDOW | DIALOG <oWnd> ] ;
                         [ VALID <uValid> ] ;
                         [ COLOR | COLORS <nClrFore> [,<nClrBack>] ] ;
                         [ PIXEL ] ;
                         [ DESIGN ] ;
                         [ FONT <oFont> ] ;
                         [ MESSAGE <cMsg> ] ;
                         [ UPDATE ] ;
                         [ WHEN <uWhen> ]
                         [ BITMAPS <acBitmaps> ] ;
                         [ ON DRAWITEM <uBmpSelect> ] ;
                         [ MULTI | MULTIPLE | MULTISEL ] ;
                         [ SORT ] ;




 Creating a ListBox   REDEFINE LISTBOX [ <oLbx> VAR ] <cnVar> ;
 from resources          [ ITEMS | PROMPTS <aItems> ]  ;
                         [ FILES | FILESPEC <cFileSpec> ] ;
                         [ ID <nId> ] ;
                         [ ON CHANGE <uChange> ] ;
                         [ ON [ LEFT ] DBLCLICK <uLDblClick> ] ;
                         [ OF | WINDOW | DIALOG <oWnd> ] ;
                         [ HELPID | HELP ID <nHelpId> ] ;
                         [ BITMAPS [ SIZE <nSize> ] ] ;
                         [ VALID <uValid> ] ;
                         [ COLOR | COLORS <nClrFore> [,<nClrBack>] ] ;
                         [ MESSAGE <cMsg> ] ;
                         [ UPDATE ] ;
                         [ WHEN <uWhen> ]
                         [ BITMAPS <acBitmaps> ] ;
                         [ ON DRAWITEM <uBmpSelect> ] ;


 <nRow>, <nCol>  The coordinates of the ListBox. They mimic text mode coordinates.

 <oLbx>          A reference to the ListBox object.

 <cnVar>         A Clipper variable, string or numeric, where FiveWin will
                 automatically select the item selected in the ListBox.

 <aList>         An Clipper array of strings, used to fill the ListBox items.

 <nWidth>, <nHeight>  The dimensions of the ListBox in pixels.

 <uChange>       A codeblock to evaluate everytime a item of the ListBox is
                 selected.

 <uLDblClick>    A codeblock to evaluate when the user left double clicks the
                 mouse over the listbox.

 <oWnd>          A reference to the container object of the ListBox, normally
                 a window or a DialogBox.

 <uValid>        A codeblock that holds the VALID clause of the ListBox.

 <nClrFore>      The color of the text of the ListBox items.

 <nClrBack>      The color of the background of the ListBox items.

 <oFont>         An optional font object to use when painting the ListBox items.

 <cMsg>          The message to show at the messageBar of the ListBox container
                 if defined (a window or a DialogBox normally).

 <uWhen>         A codeblock that holds the WHEN clause of the ListBox.

 <cFileSpec>     A 'mask' to use to automatically show files from disk.
                 i.e.: "*.*"

 <nId>           The control numeric identifier when managing resources.

 <nHelpId>       The help identifier for the ListBox.

 <nSize>         An optional size for the bitmaps used when doing a
                 ownerdraw ListBox.

 <acBitmaps>

 <uBmpSelect>


 CLAUSES

 PIXEL           To specify that <nRow> and <nCol> must be trated as pixels,
                 and not simulated as MsDos text rows and cols.

 DESIGN          To let the user move around the control with the mouse.

 UPDATE          To specify that this control should be repainted (:Refresh())
                 when issuing a <oDlg>:Update() of its container DialogBox.

 MULTI |
 MULTIPLE |      Alows Multiple selection.
 MULTISEL

 SORT


See Also: Class TListBox

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