]> git.saurik.com Git - wxWidgets.git/commitdiff
add an event table for wxFrame and wxDialog: they send wxCloseEvents...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 23 Nov 2008 23:53:45 +0000 (23:53 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 23 Nov 2008 23:53:45 +0000 (23:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dialog.h
interface/wx/frame.h

index 702595a34c20a131842e722118664013e052a17f..bb798df560a3d4b56a9ec5f0f551326541a73ee2 100644 (file)
@@ -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}
 
index 92a9479fc4397950838881a88fab72e42dc941a3..04de46ed7a6de561886ba0725d00bd2c1d7913ed 100644 (file)
     @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 |
            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}