TcxCustomSplitter.CloseSplitter Method
Changes the size of the bound control to its minimum possible value.
Declaration
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.