TDBComboBoxEh Class

TDBComboBoxEh represents a single or multi-line edit control that combines an edit box with a scrollable list and can display and edit a field in a dataset or can works as non data-aware combo edit control.

TDBComboBoxEh = class(TCustomDBComboBoxEh);

A TDBComboBoxEh component is an edit box with a scrollable drop-down list attached to it. Users can select an item from the list or type directly into the edit box. 


Use TDBComboBoxEh to enable users to edit a internal string value or a database field. If DataField and DataSource properties is not assigned then component works in not data-aware mode and store data in internal variable. 


Application can use Text (String type) and Value (Variant type) properties to get and set string value in TDBComboBoxEh. If TDBComboBoxEh is in data-aware mode then assigning to Text or Value automatically write data to associated field. 


TDBComboBoxEh permits a single line and multiple line of text. Use WordWrap property to set TDBComboBoxEh as multiple line editor. 


Use Items property to access to the list of items (strings) in the list portion of the combo box. 


Use KeyItems property to access to the list of items (strings) that the will store in field when Items property is sets too. When Items and KeyItems is filled then KeyList have to contain a values which kept in the field but Items in according index have to contain a values to show. 


Use Images property to specifies the images that are drawn in the drop-down list and image drawn in left part of combobox. Index of drawing image is takes from ItemIndex property. 


TDBComboBoxEh implements the generic behavior introduced in TCustomDBComboBoxEh. TDBComboBoxEh publishes many of the properties inherited from TCustomDBComboBoxEh, but does not introduce any new behavior. For specialized edit controls, use other descendant classes of TCustomDBComboBoxEh or derive from it.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!