From 9d157d59786f32c4c094300450df99c0243e5e61 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sun, 23 Nov 2008 23:53:45 +0000 Subject: [PATCH] add an event table for wxFrame and wxDialog: they send wxCloseEvents... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/dialog.h | 10 ++++++++++ interface/wx/frame.h | 15 ++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/interface/wx/dialog.h b/interface/wx/dialog.h index 702595a34c..bb798df560 100644 --- a/interface/wx/dialog.h +++ b/interface/wx/dialog.h @@ -125,6 +125,16 @@ enum wxDialogLayoutAdaptationMode managers recognizing the MHM hints should be running for any of these styles to have an effect. + + @beginEventTable{wxCloseEvent} + @event{EVT_CLOSE(func)} + 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. + @endEventTable + @library{wxcore} @category{cmndlg} diff --git a/interface/wx/frame.h b/interface/wx/frame.h index 92a9479fc4..04de46ed7a 100644 --- a/interface/wx/frame.h +++ b/interface/wx/frame.h @@ -31,15 +31,11 @@ @li @c wxEVT_SIZE: if the frame has exactly one child window, not counting the status and toolbar, this child is resized to take the entire frame client area. If two or more windows are present, they should be laid out explicitly either - by manually handling wxEVT_SIZE or using sizers; + by manually handling @c wxEVT_SIZE or using sizers; @li @c wxEVT_MENU_HIGHLIGHT: the default implementation displays the help string associated with the selected item in the first pane of the status bar, if there is one. - @section frame_styles - - wxFrame supports the following styles: - @beginStyleTable @style{wxDEFAULT_FRAME_STYLE} Defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | @@ -110,6 +106,15 @@ look. This is an extra style. @endExtraStyleTable + @beginEventTable{wxCloseEvent} + @event{EVT_CLOSE(func)} + The frame 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). + @endEventTable + + @library{wxcore} @category{managedwnd} -- 2.47.2