The ComboBox class provides methods to query and modify combo box controls. It inherits all methods of the DialogControl class (see DialogControl Class).
Use the GetComboBox method (see GetComboBox) to retrieve an object of the ComboBox class.
The ComboBox class requires the class definition file oodwin32.cls:
::requires "oodwin32.cls"
Instances of the ComboBox class implement the methods listed in the ComboBox Instance Methods table.
Table 22-1. ComboBox Instance Methods
Method... | ...on page |
---|---|
Add | Add |
AddDirectory | AddDirectory |
CloseDropDown | CloseDropDown |
Delete | Delete |
DeleteAll | DeleteAll |
EditSelection | EditSelection |
Find | Find |
GetText | GetText |
Insert | Insert |
IsDropDownOpen | IsDropDownOpen |
Items | Items |
Modify | Modify |
OpenDropDown | OpenDropDown |
Select | Select |
SelectIndex | SelectIndex |
Selected | Selected |
SelectedIndex | SelectedIndex |
>>-aComboBox~Add(--listEntry--)--------------------------------><
The Add method adds a new item to the list of the combo box. If the list is not sorted, the new item is added to the end of the list.
The only argument is:
A text string added to the list.
A one-based index that specifies the position at which the entry has been added, or 0 or a value less than 0 to indicate an error.