From bbc88cedf118e98157651cf7264345addd4623ef Mon Sep 17 00:00:00 2001 From: Dummy Date: Tue, 28 Apr 2020 18:52:49 +0200 Subject: [PATCH] Fix wrong documentation of EVT_CLOSE for the dialogs Clicking OK/Cancel buttons closes the dialog (by default), but doesn't generate wxEVT_CLOSE event, so don't write that it does. Closes #18743. --- interface/wx/dialog.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interface/wx/dialog.h b/interface/wx/dialog.h index 6990d37f80..513a4c5591 100644 --- a/interface/wx/dialog.h +++ b/interface/wx/dialog.h @@ -140,8 +140,7 @@ enum wxDialogLayoutAdaptationMode The dialog is being closed by the user or programmatically (see wxWindow::Close). The user may generate this event clicking the close button (typically the 'X' on the top-right of the title bar) if it's present - (see the @c wxCLOSE_BOX style) or by clicking a button with the - @c wxID_CANCEL or @c wxID_OK ids. + (see the @c wxCLOSE_BOX style). @event{EVT_INIT_DIALOG(func)} Process a @c wxEVT_INIT_DIALOG event. See wxInitDialogEvent. @endEventTable