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 [^^Up^^] [Menu] [About The Guide]
 WListBox               List box control class
 ----------------------------------------------------------------------------
 WListBox
 List box control class
 ----------------------------------------------------------------------------
 
 Properties
 CurItem        The currently selected item (a string or NIL)
 Items          The items in the control (an array of strings)
 LastRec        The number of items in the control
 Position       The number of the current item
 RecCount       The number of items in the control
 RecNo          The number of the current item
 WndClass       The name of the control's window class ("listbox")
 WndStyle       The control's usual style (a combination of WS_* values)
 
 Methods
 WListBox:Add()         Add an item
 WListBox:Delete()      Delete an item
 WListBox:GoBottom()    Position at the end of the control's items
 WListBox:GoTo()        Position at the specified item
 WListBox:GoTop()       Position at the start of the control's items
 WListBox:Init()        Construct a list box object
 WListBox:Len()         The number of items in the control
 WListBox:Seek()        Search for an item
 WListBox:Skip()        Change the current position
 
 Inherits From
 WControlWindow
 
 Inherited By
 Nothing.
 
 Description
 This is the class for list box controls.  You can use a number
 of properties and methods in a similar manner to database
 files (tables) or Clipper data types, such as GoBottom(),
 RecCount, Len() and Skip().
 
 Because Clip-4-Win uses "smart dialogs with dumb controls",
 few properties and few methods are required in this class or
 most sub-classes.  (The WDialog class provides the logic,
 rather than spreading it across the controls.)
 
 Example
 // From SOURCE\OO\DBFGEN.PRG:
 CLASS DBFDialog INHERIT WDialog
      PROTECT aFlds AS ARRAY
      PROTECT oFields AS OBJECT
      // . . .
 ENDCLASS
 
 // . . .
 @ Id IDD_FLDLIST  Obj ::oFields   ListBox  Items ::aFlds
 // . . .
 ::oFields:Add(cFld + TAB + ::cType + TAB + ::cLen + TAB + ::cDec)
 ::oFields:GoBottom()
 
 See Also  (press Enter)

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