ToolbarComboBox

Description

The ToolbarComboBox class implements the combobox that can be placed on the ToolBar toolbar.

Properties inherited from IToolbarComboBox

  Property name Brief description
BeginGroup

The BeginGroup property enables the user to separate the groups of components on the toolbar visually by a vertical line.
DropDownCount

The DropDownCount property determines the maximum number of elements displayed simultaneously in the opened list of the component.
DroppedDown

The DroppedDown property returns whether the combobox is expanded.
Enabled

The Enabled property determines whether a component is available for the user.
Hint

The Hint property determines a text of the tooltip that is displayed when the mouse cursor hovers over the combobox in the toolbar during form execution.
ItemCount

The ItemCount property returns the number of elements in the combobox.
ItemHeight

The ItemHeight property returns the height of elements in the combobox.
ItemIndex

The ItemIndex property determines index of the element in the list that is selected and displayed in the edit line of the list.
Items

The Items property determines a collection of elements of the combobox.
MaxLength

The MaxLength property determines the maximum length of the text that is entered by the user.
SelLength

The SelLength property determines the number of selected characters in the line of the combobox.
SelStart

The SelStart property determines a position of the first selected character in the text of the combobox.
SelText

The SelText property determines the text selected in the component.
Sorted

The Sorted property determines whether the elements of the combobox is sorted automatically in alphabetical order.
Style

The Style property determines a style of combobox work.
Text

The Text property determines the line that is displayed in the edit box before the element is selected in the drop-down list.
Toolbar

The Toolbar property returns the ToolBar parent component.
Visible

The Visible property determines whether the combobox is visible during form execution.
Width

The Width property determines width of the component in pixels.

Properties inherited from IComponent

  Property name Brief description
ComponentCount The ComponentCount property returns the number of child components located on the parent component.
Components The Components property returns the child component, which index is passed by the input parameter.
Data The Data property is used to store any custom data.
Name The Name property determines a component name.
Tag The compiler does not use the Tag property. The user can change the value of the Tag property and use it as he wishes.

Methods inherited from IToolbarComboBox

  Method name Brief description
ClearEdit

The ClearEdit method clears the edit line of the combobox.
SelectAll

The SelectAll method selects text in the edit line.

Events

  Event name Brief description
OnChange The OnChange event occurs when the text is changed in the edit line as a result of direct text editing or selection from the list.
OnDropDown The OnDropDown event occurs at the moment when the combobox is expanded.
OnEnter The OnEnter event occurs when a component gets focused.
OnExit The OnExit event occurs when a component loses focus.
OnItemSelect The OnItemSelect event occurs when the element is selected from the list.
OnKeyPress The OnKeyPress event occurs if the component is focused when the user presses a character key.

See also:

Forms Assembly Classes