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.OnAfterClose Event

In This Article

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

#Declaration

Delphi
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