[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a list box control used to display and select color names and values.
Source position: colorbox.pas line 220
type TColorListBox = class(TCustomColorListBox) |
||
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: TColor; |
|
TColor used for the clDefault color constant. |
property NoneColorColor: TColor; |
|
TColor used for the clNone color constant. |
|
The TColor value for the selected item in the list box control. |
|
property Style: TColorBoxStyle; |
|
Settings which determine the colors available in the control and their display style. |
property OnGetColors: TLBGetColorsEvent; |
|
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 inside its Parent. |
|
|
The set of anchor definitions for this control. |
|
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 BorderStyle: TBorderStyle; |
|
Indicates if borders are displayed around the control. |
property ClickOnSelChange: Boolean; |
|
Allows selection changes to generate a Click event. |
|
The background color of the control. |
|
property Constraints: TSizeConstraints; |
|
The minimum and maximum Width and Height for the control. |
property DragCursor: TCursor; |
|
The cursor shape shown while the control is dragged. |
|
The operation when the control is dragged - Drag or Dock. |
|
|
Allows the user to drag the control. |
|
property ExtendedSelect: Boolean; |
|
True when a contiguous range of items can be selected by a Shift+Click. Default is True. |
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 IntegralHeight: Boolean; |
|
Not implemented: shrink the Height of the widget, so that it only shows fully visible rows. |
property ItemHeight: Integer; |
|
The default height for an item displayed in the list. |
property OnChangeBounds: TNotifyEvent; |
|
Event handler for a change of the Bounds of the control. |
property OnClick: TNotifyEvent; |
|
Notification handler for mouse clicks. |
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 OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnEndDrag: TEndDragEvent; |
|
Notification handler for the end of a dragging operation. |
property OnExit: TNotifyEvent; |
|
Handler for control loosing the focus; This is a good place for checking the finished user input. |
property OnKeyPress: TKeyPressEvent; |
|
Handler for a character entered by the user. |
|
Handler for keyboard key pressed. |
|
|
Handler for keyboard key released. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler for mouse button going down. |
property OnMouseEnter: TNotifyEvent; |
|
Event handler for mouse entering the area of the control. |
property OnMouseLeave: TNotifyEvent; |
|
Event handler for mouse leaving the area of the control. |
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler for mouse button going up. |
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 OnMouseWheelHorz: TMouseWheelEvent; |
|
Event handler for horizontal movements of the mouse wheel. |
property OnMouseWheelLeft: TMouseWheelUpDownEvent; |
|
Event handler for left movements of the mouse wheel. |
property OnMouseWheelRight: TMouseWheelUpDownEvent; |
|
Event handler for right movements of the mouse wheel. |
property OnResize: TNotifyEvent; |
|
Notification handler for a resize of the control. |
property OnSelectionChange: TSelectionChangeEvent; |
|
Handler invoked when an item is selected in the control. |
property OnShowHint: TControlShowHintEvent; |
|
Event handler signalled when a hint window is displayed for the control. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
property ParentBidiMode: Boolean; |
|
Allows to use the BiDiMode settings in the Parent control. Default is true. |
property ParentColor: Boolean; |
|
Use the Color from the Parent control, when enabled. |
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 ParentFont: Boolean; |
|
If true, the Font of 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 the Hint display. |
|
Determines the sequence of control navigation when the user presses the Tab key. |
|
property TabStop: Boolean; |
|
Allows the user to navigate to this control, by pressing the Tab key. |
property TopIndex: Integer; |
|
Index of the first visible (or top-most) item. |
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
end; |
|
Implements a list box control used to display and select color names and values. |
|
| | ||
|
Implements the base class for TColorListBox. |
|
| | ||
|
The base class for TListBox. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TColorListBox is a TCustomColorListBox descendant which implements a list box control used to display and select 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 list 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 TCustomColorBox / TColorBox to display color names and values in a combo-box control.
|
Implements the base class for TColorListBox. |
lazarus-ccr.sourceforge.net |