Click or drag to resize

BaseListBox Class

X#
Provide the base class from which all X# list boxes are subclassed.
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        BaseListBox
          ListBox

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS BaseListBox INHERIT TextControl
Request Example View Source

The BaseListBox type exposes the following members.

Constructors
  NameDescription
Public methodBaseListBox
Construct a list box.
Top
Properties
  NameDescription
Public propertyCurrentItem
Public propertyCurrentItemNo
Public propertyCurrentText
A string representing the text currently displayed in a text control. For edit controls, including the edit box associated with simple and drop-down combo boxes, it contains the text currently appearing in the edit box. For fixed icon and group box controls, TextControl:CurrentText contains NULL_STRING.
(Overrides CurrentText.)
Public propertyItemCount
A numeric value representing the number of items in the list box.
Top
Methods
  NameDescription
Public methodAddItem
Add a new item to a list box at a specified position.
Public methodClear
Clear a list box of all items.
Public methodDeleteItem
Remove an item from a list box.
Public methodDestroy
Provide a method to de-instantiate a BaseListBox object.
(Overrides Destroy.)
Public methodFindItem
Search a list box for a specified string, and return the location of the first item in the list box that matches it.
Public methodGetItem
Retrieve the text of a specified list box item.
Public methodSetTop
Move a specified item to the top of the list box.
Top
Remarks
List boxes display a list of strings (or items) to the user. You can use the methods of BaseListBox to add, arrange, remove, and interrogate the items in a list box. You can also specify how the items in a list box should be sorted. When an item in a list box is single- or double-clicked, the event handlers Window:ListBoxClick() and Window:ListBoxSelect() are triggered in the list box's owner window, respectively.
See Also

Reference