X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a44f3b5a890fbb2a88ef9adafd94f662e1664889..f1ddb476b1d90a1e24f904eb74462f5dc5165442:/interface/wx/frame.h?ds=sidebyside diff --git a/interface/wx/frame.h b/interface/wx/frame.h index 84a81d2ebb..826cf2fa67 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,26 @@ look. This is an extra style. @endExtraStyleTable + @beginEventEmissionTable + @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). See wxCloseEvent. + @event{EVT_ICONIZE(func)} + Process a @c wxEVT_ICONIZE event. See wxIconizeEvent. + @event{EVT_MENU_OPEN(func)} + A menu is about to be opened. See wxMenuEvent. + @event{EVT_MENU_CLOSE(func)} + A menu has been just closed. See wxMenuEvent. + @event{EVT_MENU_HIGHLIGHT(id, func)} + The menu item with the specified id has been highlighted: used to show + help prompts in the status bar by wxFrame. See wxMenuEvent. + @event{EVT_MENU_HIGHLIGHT_ALL(func)} + A menu item has been highlighted, i.e. the currently selected menu item has changed. + See wxMenuEvent. + @endEventTable + @library{wxcore} @category{managedwnd} @@ -160,6 +176,8 @@ public: /** Destructor. Destroys all child windows and menu bar if present. + + See @ref overview_windowdeletion for more info. */ virtual ~wxFrame(); @@ -222,19 +240,18 @@ public: @return A pointer to the toolbar if it was created successfully, @NULL otherwise. - @remarks By default, the toolbar is an instance of wxToolBar (which is - defined to be a suitable toolbar class on each - platform, such as wxToolBar95). To use a different - class, override OnCreateToolBar(). - When a toolbar has been created with this function, or made - known to the frame with wxFrame::SetToolBar, the frame will - manage the toolbar position and adjust the return value from - wxWindow::GetClientSize to reflect the available space for - application windows. - Under Pocket PC, you should always use this function for creating - the toolbar to be managed by the frame, so that wxWidgets can - use a combined menubar and toolbar. - Where you manage your own toolbars, create a wxToolBar as usual. + @remarks + By default, the toolbar is an instance of wxToolBar. + To use a different class, override OnCreateToolBar(). + When a toolbar has been created with this function, or made + known to the frame with wxFrame::SetToolBar(), the frame will + manage the toolbar position and adjust the return value from + wxWindow::GetClientSize() to reflect the available space for + application windows. + Under Pocket PC, you should always use this function for creating + the toolbar to be managed by the frame, so that wxWidgets can + use a combined menubar and toolbar. + Where you manage your own toolbars, create a wxToolBar as usual. @see CreateStatusBar(), OnCreateToolBar(), SetToolBar(), GetToolBar() */