[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a Rebar-like control with resizable bands.
Source position: comctrls.pp line 2627
type TCoolBar = class(TCustomCoolBar) |
||
published |
||
|
Contains the edge in the Parent where the control is aligned. |
|
|
The set of anchor definitions for this control. |
|
property AutoSize: Boolean; |
|
Allows automatic adjustment of the size for the control, according to its content. |
property BandBorderStyle: TBorderStyle; |
|
Border style used around bands on the control. |
property BandMaximize: TCoolBandMaximize; |
|
Indicates the action used to maximize the width for a band on the control. |
property Bands: TCoolBands; |
|
Collection with the bands defined for the control. |
property BiDiMode: TBiDiMode; |
|
Customization (of text controls) in bidirectional reading environments. |
property BorderWidth: TBorderWidth; |
|
Width of the Border around the control; default is zero. |
|
The background color of the control. |
|
property Constraints: TSizeConstraints; |
|
Contains the minimum and maximum Width and Height for the control. |
property DockSite: Boolean; |
|
Allows controls to be drag-dock'd into this 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 EdgeBorders: TEdgeBorders; |
|
Indicates the edges to be drawn with a border on the control. |
property EdgeInner: TEdgeStyle; |
|
Specifies the drawing style used for the inner border of the control. |
property EdgeOuter: TEdgeStyle; |
|
Specifies the drawing style used for the outer border of the control. |
property Enabled: Boolean; |
|
Determines whether the control reacts on mouse or keyboard input. |
property FixedSize: Boolean; |
|
Indicates if bands on the control have a fixed size. |
property FixedOrder: Boolean; |
|
Indicates if the order of the bands on the control is fixed or locked. |
|
The font to be used for text display in this control. |
|
property GrabStyle: TGrabStyle; |
|
Drawing style used for a grabber or gripper displayed on the control. |
property GrabWidth: Integer; |
|
Width for the grabber on the control. |
property HorizontalSpacing: Integer; |
|
Horizontal space reserved between visual elements on the control. |
property Images: TCustomImageList; |
|
Contains images displayed on the bands for the control. |
property ImagesWidth: Integer; |
|
Width for the Images used in the control. |
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. |
|
Optional image displayed as the background for the cool bar control. |
|
property PopupMenu: TPopupMenu; |
|
If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True. |
property ShowHint: Boolean; |
|
Enables Hint display for the control. |
property ShowText: Boolean; |
|
Indicates if text captions are displayed for the bands on the control. |
property Themed: Boolean; |
|
Enables or disables themed rendering for the control. |
property Vertical: Boolean; |
|
Indicates if the control is displayed vertically instead of horizontally. |
property VerticalSpacing: Integer; |
|
Vertical space reserved between visual elements in the control. |
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
property OnChange: TNotifyEvent; |
|
Event handler signalled when Bands are re-sized or re-ordered using the mouse. |
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 OnDockDrop: TDockDropEvent; |
|
Notification handler for the drop of a control to be docked. |
property OnDockOver: TDockOverEvent; |
|
Event handler for moves of a control over this docksite; determines acceptance or rejection of an possible drop. |
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 OnEndDock: TEndDragEvent; |
|
Notification handler for the end of a docking operation. |
property OnEndDrag: TEndDragEvent; |
|
Notification handler for the end of a drag operation. |
property OnGetSiteInfo: TGetSiteInfoEvent; |
|
Provides information about the DockSite 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 OnResize: TNotifyEvent; |
|
Notification handler for a resize of the control. |
property OnStartDock: TStartDockEvent; |
|
Event handler for the start of a docking operation. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnUnDock: TUnDockEvent; |
|
Event handler signalled before a control is undocked from its DockSite. |
end; |
|
Implements a Rebar-like control with resizable bands. |
|
| | ||
|
Defines a Rebar-like control with resizable bands. |
|
| | ||
|
Implements a control which can paint its client area with borders. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
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. |
|
| | ||
TComponent |
||
? | ||
TObject |
TCoolBar is a TCustomCoolBar descendant which implements a control like the Windows Rebar control. It provides a collection of windowed controls which are displayed in movable, resizable bands.
Each band (or TCoolBand) on the control can have a configurable sizing grip (or grabber), a bitmap, a text label, and a single windowed control. The CoolBar handles the size and position for the control when its band is moved. Each band can have a fixed size, or can automatically re-size to the contained control. Bands can be displayed one band per line, or re-sized and positioned to fill the available width or height for the CoolBar control.
A common use case is hosting multiple toolbars in an application. Separate TToolbar instance are created and configured with event handlers or actions as needed. Each toolbar is assigned as the Control for a band on the cool bar control. A perfect example is the Lazarus IDE, which uses TCoolbar to host the file, view and run toolbars in its interface.
|
Defines a Rebar-like control with resizable bands. |