[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements combo-box control used to select a color name or value.
Source position: colorbox.pas line 97
type TColorBox = class(TCustomColorBox) |
||
published |
||
property ColorRectWidth: Integer; |
|
Width for the color sample (swatch) displayed for colors in the item list. |
property ColorRectOffset: Integer; |
|
Number of pixels between the color sample and the color name. |
property DefaultColorColor: TGraphicsColor; |
|
TColor used for the clDefault color constant. |
property NoneColorColor: TGraphicsColor; |
|
TColor used for the clNone color constant. |
property Selected: TGraphicsColor; |
|
The TColor value for the selected item in the combo-box control. |
property Style: TColorBoxStyle; |
|
Settings which determine the colors available in the control and their display style. |
property OnGetColors: TGetColorsEvent; |
|
OnGetColors - event handler for the instruction to get colors. |
property ColorDialog: TColorDialog; |
|
Dialog displayed to select a custom color for the control. |
|
Specifies the placement of the control on its Parent control. |
|
|
The set of anchor definitions for this control. |
|
property ArrowKeysTraverseList: Boolean; |
|
Indicates if keyboard Arrow (or cursor) keys can be used to move through the list. |
property AutoComplete: Boolean; |
|
Positions the list box using partial text matching. |
property AutoCompleteText: TComboBoxAutoCompleteText; |
|
Options for the behavior of the Auto-Complete feature. |
property AutoDropDown: Boolean; |
|
Makes the drop-down list appear as soon as the user starts entering text. |
property AutoSelect: Boolean; |
|
Selects the entire content of the edit box when the control receives the focus. |
property AutoSize: Boolean; |
|
Allows automatic adjustment of the size for the control, according to its content. |
property BidiMode: TBiDiMode; |
|
Customization (of text controls) in bidirectional reading environments. |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property Color: TGraphicsColor; |
|
The background color of the control. |
property Constraints: TSizeConstraints; |
|
Contains the minimum and maximum Width and Height for the control. |
property DragCursor: TCursor; |
|
The cursor shape shown while the control is dragged. |
|
Allows the user to drag the control. |
|
property DropDownCount: Integer; |
|
The maximum number of Items visible in the drop-down list for the control. |
property Enabled: Boolean; |
|
Determines whether the control reacts on mouse or keyboard input. |
|
The font to be used for text display in this control. |
|
property ItemHeight: Integer; |
|
The default height of an item in the drop-down for the control. |
property ItemWidth: Integer; |
|
The minimum width of the items in the drop-down list. |
property OnChange: TNotifyEvent; |
|
Event handler signalled for user changes to the text in the edit box. |
property OnChangeBounds: TNotifyEvent; |
|
Event handler signalled when the Bounds of the control have been changed. |
property OnClick: TNotifyEvent; |
|
Notification handler for mouse clicks. |
property OnCloseUp: TNotifyEvent; |
|
Handler invoked when the drop-down list closes. |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnDblClick: TNotifyEvent; |
|
Event Handler for double mouse clicks. |
property OnDragDrop: TDragDropEvent; |
|
This handler determines the action on an drop onto this control, in a drag-drop operation. |
property OnDragOver: TDragOverEvent; |
|
Event handler for a control being dragged over this control. |
property OnEndDrag: TEndDragEvent; |
|
Notification handler for the end of a drag operation. |
property OnDropDown: TNotifyEvent; |
|
Handler invoked when the list has dropped down. |
property OnEditingDone: TNotifyEvent; |
|
Event handler signalled when editing is done. |
property OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnExit: TNotifyEvent; |
|
Handler for control loosing the focus; This is a good place for checking the finished user input. |
|
Handler for keyboard key pressed. |
|
property OnKeyPress: TKeyPressEvent; |
|
Handler for a character entered by the user. |
|
Event handler signalled when a key up event has occurred for the control. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler signalled when a mouse down event is handled for the control. |
property OnMouseEnter: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has entered the control. |
property OnMouseLeave: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has left the control. |
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler signalled when a mouse up event is handled for the control. |
property OnMouseWheel: TMouseWheelEvent; |
|
Event handler for mouse wheel turned. |
property OnMouseWheelDown: TMouseWheelUpDownEvent; |
|
Event handler for downward movement of mouse wheel. |
property OnMouseWheelUp: TMouseWheelUpDownEvent; |
|
Event handler for upward movement of the mouse wheel. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnSelect: TNotifyEvent; |
|
Handler invoked when an item is selected. |
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
property ParentBidiMode: Boolean; |
|
Indicates whether the BiDiMode settings in the Parent control are used. |
property ParentColor: Boolean; |
|
Use the Color from the Parent control, when enabled. |
property ParentFont: Boolean; |
|
If True, the Font of the control will be the same as the one from the Parent. Default is True. |
property ParentShowHint: Boolean; |
|
If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True. |
property PopupMenu: TPopupMenu; |
|
A context-sensitive menu that pops up when the right mouse button is clicked over this control. |
property ShowHint: Boolean; |
|
Enables Hint display for the control. |
|
Indicates the navigation order for the control when the user presses the Tab or Shift+Tab key. |
|
property TabStop: Boolean; |
|
Allows the user to navigate to / from the control by pressing the Tab or Shift+Tab keys. |
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
end; |
|
Implements combo-box control used to select a color name or value. |
|
| | ||
|
The base class for TColorBox. |
|
| | ||
|
The base class for combo-box components. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TObject |
TColorBox is a TCustomColorBox descendant which implements the a combo-box control used to display and select available color names and values. Each item in the control has a small rectangle where the color is displayed (swatch) and the color name.
The Style property is used to configure the list of available colors and their display names. Style may also trigger use of the OnGetColors event handler to get the items displayed in the combo-box control.
The ColorRectWidth and ColorRectOffset properties can be used to control the size and spacing for the color swatch displayed for the list items.
Colors allows indexed access to the TColor values in the list of items. When included in the Style property, colors like clDefault and/or clNone may be included in the list of Colors. The DefaultColorColor and NoneColorColor properties can be used to specify the TColor values used for those color constants.
ColorNames allows indexed access to the names for the values in Colors.
Use TCustomColorListBox / TColorListBox to display color names and values in a list box control.
|
The base class for TColorBox. |
|
|
Implements the base class for TColorListBox. |
|
|
Implements a list box control used to display and select color names and values. |