ToolbarComboBox

Description

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

Properties inherited from IToolbarComboBox

  Property name Brief description
The BeginGroup property allows to separate the groups of component on the toolbar visually by the vertical line.
The DropDownCount property determines the maximum number of element displayed simultaneously in the opened list of the component.
The DroppedDown property indicates whether the combo box is dropped down.
The Enabled property determines whether a component is available for a user.
The Hint property determines text of the tooltip that appears when the mouse pointer is pointed at the combo box editor in the toolbar during form execution.
The ItemCount property returns the number of elements in the combo box.
The ItemHeight property returns the height of elements in the combo box.
The ItemIndex property determines index of the element in the list that is selected and displayed in the edit line of the list.
The Items property determines collection of elements of the combo box.
The MaxLength property determines the maximal length of the text that is input by the user.
The SelLength property determines the number of selected characters in the line of combo box.
The SelStart property determines position of the first selected character in the text of the combo box.
The SelText property determines the text selected in the component.
The Sorted property determines whether the elements of the combo box should be sorted automatically in alphabetical order.
The Style property determines style of the combo box work.
The Text property determines the line that is displayed in the edit box before the element is selected from the drop-down list.
The Toolbar property returns the ToolBar parent component.
The Visible property determines whether the combo box is visible during form execution.
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 child property, the index of which is passed by the input parameter.
Data The Data property is used to store any custom data.
Name The Name property specifies the component name.
Tag The compiler does not use the Tag property. A user can change the value of the Tag property and use it as he wishes.

Methods inherited from IToolbarComboBox

  Method name Brief description
The ClearEdit method clears the edit line of the combo box.
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 combo box 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 a component is focused when a user presses a character key.

See also:

Forms Assembly Classes