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

TdxCloseQueryEvent Type

A document close event type.

#Declaration

Delphi
TdxCloseQueryEvent = procedure(Sender: TObject; var CanClose: Boolean) of object;

#Parameters

Name Type
Sender TObject
CanClose Boolean

#Remarks

This event occurs every time a document server component is about to close the currently opened document with unsaved changes.

The Sender parameter provides access to the document server component that raised a TdxCloseQueryEvent event. Cast the parameter value to the TdxRichEditDocumentServer class to access all component-specific class members.

Assign True or False to the CanClose parameter to allow or forbid the pending document close operation.

A document server component’s OnDocumentClosing event references the TdxCloseQueryEvent procedural type.

See Also