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

TdxRibbonCustomBackstageView.OnCanClose Event

In This Article

Enables you to prohibit end-users from closing the menu.

#Declaration

Delphi
property OnCanClose: TCloseQueryEvent read; write;

#Remarks

Sender specifies the menu to be closed.

Pass False as the CanClose event parameter to prohibit end-users from closing the menu.

Note

The OnCanClose event is fired in response to either an end-user action that closes the menu or the ClosePopup method call. Closing an application or hiding the menu via its Hide method or the Visible property does not fire this event. To respond to closing the menu in any case, handle the OnCloseUp event.

See Also