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

# TSplitter

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

TSplitter : A vertical or horizontal bar placed on a panel or form, to separate sub-panels functionally

## Declaration

Source position: extctrls.pp line 656

`type TSplitter = class(TCustomSplitter)`
`published`
`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 AutoSnap;` |  | AutoSnap - automatically snaps to a grid point or grid line in the Form designer
`property Beveled;` |  | Whether the edges of the splitter bar are bevelled
`property Color;` |  | Determine the colour for the current control
`property Constraints;` |  | Determine Constraints (max and min height and width) for this control
`property Cursor;` |  | The type of cursor to be used with this control
`property Height;` |  | Height - the vertical dimension of the control
`property MinSize;` |  | Minimum size for splitter - default 30 pixels
`property OnCanResize;` |  | Event handler for receiving permission to resize
`property OnChangeBounds;` |  | Event handler for a change in bounds of the control
`property OnMoved;` |  | Event handler for occasion when splitter has moved
`property ParentColor;` |  | ParentColor - should the control have the same colour 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 ResizeAnchor;` |  | ResizeAnchor - the kind of anchor to be used for resizing
`property ResizeStyle;` |  | Style for resizing - as a line, a pattern, full update, or none
`property ShowHint;` |  | Flag to determine: Is hint to be displayed for this control?
`property Visible;` |  | Visible - can the control be seen?
`property Width;` |  | Width - the horizontal dimension of the control
`end;`

## Inheritance

`TSplitter` |  | TSplitter : A vertical or horizontal bar placed on a panel or form, to separate sub-panels functionally
`TCustomSplitter` |  | TCustomSplitter : the base type for TSplitter
`TCustomControl` |  | TCustomControl - a base class for many window controls
`TWinControl`
`TControl`
`TLCLComponent` |  | TLCLComponent - base class for LCL components
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TSplitter: A vertical or horizontal bar that can be placed on a panel or form, to separate sub-panels functionally and allow re-sizing of the constituent sub-panels

The splitter extends for the full height (if vertical) or full width (if horizontal) of the parent control (form or panel) and is anchored to the edges; its position along the length or height of the parent is determined by the programmer or user by moving the whole control with the mouse, and its size can be adjusted using the sizing bars and with the ResizeAnchor property

## See also

HowToUseStdCtrls |  | How to use StdCtrls, ComCtrls or ExtCtrls

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