Skip to main content

TcxCustomSplitter.OnBeforeClose Event

Enables you to stop the splitter from being closed.

Declaration

property OnBeforeClose: TBeforeCloseHotZoneEvent read; write;

Remarks

This event fires when the splitter is about to be closed. It can be invoked as the result of clicking the hot zone or of closing the splitter programmatically (using the CloseSplitter method or the State property). Handle this event to prohibit closing the splitter when particular conditions are met. To restrict splitter closing, set the AllowClose parameter to False.

The Sender parameter specifies the splitter control to be closed.

See Also