[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ColorBox' (#lcl)

TColorBox

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TColorBox - presents the user with a ComboBox with a drop-down list from which to select a colour

Declaration

Source position: colorbox.pas line 86

type TColorBox = class(TCustomColorBox)

published

  property DefaultColorColor;

  

DefaultColorColor - the default colour, expressed as a Color value

  property NoneColorColor;

  

NoneColorColor - the colour to be used when no selection has been made, or when None is selected, stored as a TColor

  property Selected;

  

The colour that has been Selected from the ComboBox

  property Style;

  

Style : may be Simple, a single-line Drop-Down or a Drop-Down list, or some version drawn by the Owner

  property OnGetColors;

  

OnGetColors - event handler for the instruction to Get Colours

  property Align;

  

Used to align the control to the top, bottom, left or right of its client.

  property Anchors;

  

The set of anchor definitions for this control

  property ArrowKeysTraverseList;

  

ArrowKeysTraverseList - enables the operator to use the keyboard Arrow keys to move through the list as an alternative to using the mouse

  property AutoComplete;

  

AutoComplete - enables the facility to offer suggestions for completing text-strings

  property AutoCompleteText;

  

AutoCompleteText : Options for behavior of the Auto-Complete feature

  property AutoDropDown;

  

AutoDropDown - if True, the drop-down list appears as soon as the cursor moves over the text box

  property AutoSelect;

  property AutoSize;

  

Whether auto-size is to be used

  property BidiMode;

  property BorderSpacing;

  

Determines the border spacing for this control

  property Color;

  

Determine the colour for the current control

  property Constraints;

  property DragCursor;

  

DragCursor - the style of cursor to be used during the Drag process

  property DragMode;

  

DragMode - whether manual or automatic

  property DropDownCount;

  

DropDownCount - number of entries in the drop-down list

  property Enabled;

  

Whether the control is Enabled (read/write). If not, it usually appears 'greyed-out'

  property Font;

  

The font to be used for text in this control (read/write).

  property ItemHeight;

  

ItemHeight - the height of the current item in the drop-down list

  property ItemWidth;

  

ItemWidth - the width of the current item in the drop-down list

  property OnChange;

  

OnChange - event handler for any change in properties of the combo box

  property OnChangeBounds;

  

Event handler for a change in bounds of the control

  property OnClick;

  

Event Handler for mouse click

  property OnCloseUp;

  

OnCloseUp - event handler for when the drop-down box is closed up again

  property OnContextPopup;

  property OnDblClick;

  

Event Handle for mouse double-click

  property OnDragDrop;

  

Event handler for the drop of a control onto this control.

  property OnDragOver;

  

Event handler for the case when a control is dragged over another control

  property OnEndDrag;

  

Event handler for the end of a dragging process

  property OnDropDown;

  

OnDropDown - event handler for when the drop-down list appears

  property OnEditingDone;

  

Event handler when editing is done

  property OnEnter;

  

OnEnter - event handler for when the mouse enters the control, and the control receives focus

  property OnExit;

  

OnExit - event handler for when the mouse leaves the control and it loses focus

  property OnKeyDown;

  

OnKeyDown - event handler for instance when key is down while control has focus

  property OnKeyPress;

  

OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.

  property OnKeyUp;

  

OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus

  property OnMouseDown;

  

Event handler for when a mouse button is pressed down

  property OnMouseEnter;

  property OnMouseLeave;

  property OnMouseMove;

  

Event handler for mouse movement within the current control

  property OnMouseUp;

  

Event handler for when the mouse button is released, ie "up"

  property OnStartDrag;

  

Event handler for start of dragging operation

  property OnSelect;

  

Event handler when an item or some text is selected

  property OnUTF8KeyPress;

  

UTF8KeyPress - event controller for a key being pressed while the control has focus.

  property ParentBidiMode;

  property ParentColor;

  

ParentColor - should the control have the same colour as the parent? Default is true

  property ParentFont;

  

ParentFont - should the control use the same font as the parent? Default is true

  property ParentShowHint;

  

ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true

  property PopupMenu;

  

PopupMenu - a context-sensitive menu that pops up when the right mouse button is clicked over this control

  property ShowHint;

  

Flag to determine: Is hint to be displayed for this control?

  property TabOrder;

  

The place this control occupies in the list of tabs

  property TabStop;

  

Is the control in the sequence of controls accessed by successive presses of the Tab key?

  property Visible;

  

Visible - can the control be seen?

end;

Inheritance

TColorBox

  

TColorBox - presents the user with a ComboBox with a drop-down list from which to select a colour

|

TCustomColorBox

  

TCustomColorBox - base class for TColorBox

|

TCustomComboBox

  

TCustomComboBox - the base class from which TComboBox is derived

|

TWinControl

|

TControl

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.