Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomSplitter.CloseSplitter Method

In This Article

Changes the size of the bound control to its minimum possible value.

#Declaration

Delphi
procedure CloseSplitter;

#Remarks

Call this method to collapse the splitter programmatically. Collapsing the splitter implies setting the size of the bound control to its minimum possible value. Most commonly, the minimum possible width or height of a control is 0. In this case, collapsing the splitter results in hiding the bound control. However, some controls may not allow their height or width to be set to 0. For instance, you may use the Constraints property of a control to limit control dimensions. In this case, part of the bound control will remain visible even after the CloseSplitter method call.

Calling the CloseSplitter method is equivalent to clicking the hot zone when the splitter is expanded. If the splitter is collapsed, clicking it results in increasing the size of the bound control. To accomplish this in code, call the OpenSplitter method.

Moving the splitter at runtime is useful for dynamically showing and hiding the bound control. For instance, you may want to display a panel when the mouse pointer hovers over a certain area and hide it when the mouse pointer leaves the area.

See Also