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
This commit is contained in:
parent
d76259e2fb
commit
9d157d5978
@ -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}
|
||||
|
||||
|
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user