Skip to main content

TcxCustomSplitter.Control Property

Specifies the control whose size is affected by the splitter.

Declaration

property Control: TControl read; write;

Property Value

Type
TControl

Remarks

In a newly created splitter, the Control property is initialized with an empty string. This value indicates that the splitter automatically binds to the nearest visible control (a TControl descendant) that has matching alignment settings. To manually bind the splitter to a certain control, refer to this control via the splitter’s Control property. Once bound, user interactions with the splitter adjust the size of its bound control, provided that their alignment settings match. Switching the bound control’s Align property to alLeft, alTop, alRight, or alBottom automatically adjusts the splitter’s position and alignment, overriding the splitter’s AlignSplitter property setting. The adjustment is made as if the AlignSplitter property is set to salLeft, salTop, salRight, or salBottom, respectively.

Refer to the Using the TcxSplitter topic for an example on how to use TcxSplitter controls.

See Also