[Overview][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TCustomSplitter is the base type for TSplitter.
Source position: extctrls.pp line 345
type TCustomSplitter = class(TCustomControl) |
||
protected |
||
procedure CMEnabledChanged(); message; |
|
Handles the CM_ENABLEDCHANGED message. |
class procedure WSRegisterClass; override; |
|
Registers this component class with the current WidgetSet. |
function AdaptAnchors(); |
|
Adjust anchor settings to reflect the value in the Align property. |
function CheckNewSize(); virtual; |
|
CheckNewSize ensures the new size is appropriate; returns True if successful. |
function CheckOffset(); virtual; |
|
Signals the OnCanOffset event handler to determine the offset used when aligning the control, and the success or failure of the calculation. |
function FindAlignControl; |
|
FindAlignControl returns the main alignment control. |
function FindAlignOtherControl; |
|
FindAlignOtherControl returns another alignment control (the splitter may have to align two controls) |
procedure MouseDown(); override; |
|
Initiates the splitter movement operation. |
procedure MouseEnter; override; |
|
Starts mouse capture and tracking for the control. |
procedure MouseLeave; override; |
|
Perform actions when the mouse pointer exits the control. |
procedure MouseMove(); override; |
|
Handler for MouseMove events. |
procedure MouseUp(); override; |
|
Invokes the OnMouseUp handler. |
procedure Paint; override; |
|
Draws the splitter control. |
procedure SetAlign(); override; |
|
Sets the value for the Align property. |
procedure SetAnchors(); override; |
|
Sets the value for the Anchors property. |
procedure SetResizeAnchor(); virtual; |
|
Sets the value for the ResizeAnchor property. |
procedure SetResizeControl(); virtual; |
|
Sets the value for the ResizeControl property. |
procedure StartSplitterMove(); |
|
StartSplitterMove - method for starting movement of the splitter, given the mouse position MouseXY. |
procedure StopSplitterMove(); |
|
Performs actions when splitter movement is stopped at the specified mouse position. |
procedure UpdateCursor; virtual; |
|
Updates the cursor to reflect the ResizeAnchor for the splitter. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
procedure AnchorSplitter(); |
|
AnchorSplitter anchors the splitter to AControl using the specified Kind of anchor. |
property ResizeControl: TControl; [rw] |
|
ResizeControl is the control that is to be re-sized with the splitter. |
function GetOtherResizeControl; |
|
GetOtherResizeControl finds the other adjacent control to be re-sized. |
procedure MoveSplitter(); virtual; |
|
MoveSplitter moves the splitter by an amount specified in Offset. |
procedure SetSplitterPosition(); |
|
SetSplitterPosition - to specified NewPosition. |
function GetSplitterPosition; |
|
GetSplitterPosition returns the current position of the splitter. |
|
Specifies the placement of the control inside its Parent. |
|
property AutoSnap: Boolean; [rw] |
|
AutoSnap automatically moves the splitter to the zero position when split size becomes smaller than the value in MinSize. |
property Beveled: Boolean; [rw] |
|
Indicates whether the edges of the splitter bar are beveled. |
|
The shape for the mouse pointer when the control is dragged. |
|
property MinSize: Integer; [rw] |
|
Minimum size for splitter; default is 30 pixels. |
property OnCanOffset: TCanOffsetEvent; [rw] |
|
Event handler signalled to calculate the control offset, and to accept or reject the offset value. |
property OnCanResize: TCanResizeEvent; [rw] |
|
Event handler for receiving permission to resize. |
property OnMoved: TNotifyEvent; [rw] |
|
Event handler for occasion when splitter has moved. |
property ResizeAnchor: TAnchorKind; [rw] |
|
ResizeAnchor - the kind of anchor to be used for resizing. |
property ResizeStyle: TResizeStyle; [rw] |
|
Style for resizing - as a line, a pattern, full update, or none. |
end; |
|
TCustomSplitter is the base type for TSplitter. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
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 |
TCustomSplitter is a TCustomControl descendant which implements a control used to resize, position and align a control to which it is anchored. TCustomSplitter displays a vertical or a horizontal bar anchored to the side of another control. Use the Align property to specify the orientation for the splitter control, and the adjacent control to which it is attached. When the splitter is moved with the mouse, the adjacent control with the same Align value will be resized.
This class defines many of the basic properties for the children classes, such as positioning, sizing and alignment.
Another usage scenario allows setting the Align property to alNone, and using AnchorSides and ResizeAnchor.
TCustomSplitter is the base type for TSplitter.
|
TSplitter : A vertical or horizontal bar placed on a panel or form, to separate sub-panels functionally. |
lazarus-ccr.sourceforge.net |