Skip to main content

TcxCustomSplitter.OnAfterClose Event

Fires after the splitter was closed (i.e., the bound control was minimized).

Declaration

property OnAfterClose: TNotifyEvent read; write;

Remarks

Write an OnAfterClose event handler to do something after closing the splitter. End-users can close the splitter by clicking the hot zone, if it is enabled, or by dragging it to the minimum possible position. You can close it programmatically using the CloseSplitter method or the State property.

The Sender parameter holds the splitter control that has been closed.

The OnAfterClose event is useful if you need to update the layout of controls when changing the splitter’s state. You can also handle it for display purposes. For instance, you may want to change the style of the splitter when it is closed. If you need to discard the changes made in the OnAfterClose event handler when the splitter is opened again, handle the OnAfterOpen event.

See Also