X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/43c48e1e53d74cef62d15f08f015d9efeb45a0c1..4e878f44abee3e03cf981772e9c623f0c16408c9:/interface/wx/frame.h diff --git a/interface/wx/frame.h b/interface/wx/frame.h index e9c4e1a6af..92a9479fc4 100644 --- a/interface/wx/frame.h +++ b/interface/wx/frame.h @@ -156,7 +156,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const wxString& name = "frame"); + const wxString& name = wxFrameNameStr); /** Destructor. Destroys all child windows and menu bar if present. @@ -222,19 +222,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() */ @@ -332,7 +331,7 @@ public: @param id The identifier for a menu item. */ - void ProcessCommand(int id); + bool ProcessCommand(int id); /** Tells the frame to show the given menu bar. @@ -386,7 +385,7 @@ public: @param n The number of fields in the status bar. It must be the same used in CreateStatusBar. - @param widths + @param widths_field Must contain an array of n integers, each of which is a status field width in pixels. A value of -1 indicates that the field is variable width; at least one field must be -1. You should delete this array after calling