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>class tlistbox</b> inherits from tcontrol http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Class TListBox      Inherits from TControl
--------------------------------------------------------------------------------

 DATA
--------------------------------------------------------------------------------
 aItems          Array of Items of the ListBox
 aBitmaps        Array of related bitmaps handles for ownerdraw ListBox.
 lOwnerDraw      If it is a ownerdraw ListBox.
 nBmpHeigth      Height of bitmaps if ListBox is OwnerDraw
 nBmpWidth       Width of Bitmaps if Listbox is OwnerDraw
 cFileSpec       FileSpec to display a fields directory items.
 bDrawItem       Optional codeblock to select what bitmap to draw on a ownerdraw

 METHODS
--------------------------------------------------------------------------------
 New             Constructor from source code
 ReDefine        Constructor for resources
 Add             Add an Item to the list.
 aSelections     Array with selected items on a MultiSelect ListBox.
 cGenPrn         Generates the xBase source code of the control
 Change          Changed event handler.
 cToChar         Generates a data template to build a DialogBox
 Default         Default Listbox initialization
 Del             Deletes an Item.
 Destroy         Destroys the control. Automatically called.
 DrawItem        DrawItem event handler.
 FillMeasure     FillMeasure event handler.
 GetItem         Retrieves the text of any item.
 GetPos          Retrieves the index of the currently selected item.
 GetSel          Index number of the selected item. Zero if no item selected
 GetSelCount     Retrieves the number of selected items on a multiselect ListBox
 GetSelItem      Retrieves the current select item as text
 GoBottom        Go to the last item in the listbox
 GoTop           Go to the first item in the listbox
 Init            Generic control initialization
 Insert          Insert an Item.
 IsMultipleSel   Check if the ListBox is multiple selection style
 Len             Retrieves the length of the list.
 LostFocus       Behavior when losing the focus
 Modify          Modify the text of an Item.
 MouseMove       Behavior when moving the mouse over the control
 Reset           Empties the list.
 Select          Select an item by its order
 Set             Select an item by its text
 SetBitmaps      Sets the ownerdraw related bitmaps
 SetItems        Changes the items of the listbox
 SetSel          Selects a different item
 SetSelItems     Select a group of items on a multiselection ListBox
 SwapDown        Toggles an item with its following one
 SwapUp          Toggles an item with its preceding one
 VScroll         Vertical scroll events handler

See Also: Class TControl

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