Skip to main content

TcxCustomDropDownEditProperties.OnCloseQuery Event

Occurs before closing the popup window.

Declaration

property OnCloseQuery: TCloseQueryEvent read; write;

Remarks

The OnCloseQuery event is generated when the popup window is about to close. It is generated when a user clicks the close (x) button on the system panel in the popup or when setting the ModalResult property of the popup form to a value other than mrNone. To display the popup system panel you have to set the PopupSysPanelStyle property to True.

The CanClose parameter specifies whether the popup can be closed. Set it to False to prevent the popup window from closing. The Sender parameter identifies the edit control which generates the event.

Use the OnCloseUp event to perform specific actions when the popup window is closed.

See Also