X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7832ada05e2124797b6e3d18e7e53573e51898ed..d3fa4bc22e84e3ca4d88cc1772f2d414140a1017:/interface/wx/frame.h diff --git a/interface/wx/frame.h b/interface/wx/frame.h index a8bcda572a..1bf4589e14 100644 --- a/interface/wx/frame.h +++ b/interface/wx/frame.h @@ -6,6 +6,14 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +/** + Frame specific styles +*/ +#define wxFRAME_NO_TASKBAR 0x0002 // No taskbar button (MSW only) +#define wxFRAME_TOOL_WINDOW 0x0004 // No taskbar button, no system menu +#define wxFRAME_FLOAT_ON_PARENT 0x0008 // Always above its parent + + /** @class wxFrame @@ -70,7 +78,7 @@ recommended to only use it together with wxCAPTION for consistent behaviour under all platforms. @style{wxRESIZE_BORDER} - Displays a resizeable border around the window. + Displays a resizable border around the window. @style{wxFRAME_TOOL_WINDOW} Causes a frame with a small title bar to be created; the frame does not appear in the taskbar under Windows or GTK+. @@ -89,8 +97,8 @@ with the SetShape() method. @endStyleTable - The default frame style is for normal, resizeable frames. - To create a frame which can not be resized by user, you may use the following + The default frame style is for normal, resizable frames. + To create a frame which cannot be resized by user, you may use the following combination of styles: @code @@ -103,7 +111,7 @@ @style{wxFRAME_EX_CONTEXTHELP} Under Windows, puts a query button on the caption. When pressed, Windows will go into a context-sensitive help mode and wxWidgets - will send a wxEVT_HELP event if the user clicked on an application + will send a @c wxEVT_HELP event if the user clicked on an application window. Note that this is an extended style and must be set by calling SetExtraStyle before Create is called (two-step construction). You cannot use this style together with @@ -118,7 +126,8 @@ @beginEventEmissionTable @event{EVT_CLOSE(func)} - The frame is being closed by the user or programmatically (see wxWindow::Close). + Process a @c wxEVT_CLOSE_WINDOW event when 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. @@ -234,7 +243,7 @@ public: */ virtual wxStatusBar* CreateStatusBar(int number = 1, long style = wxSTB_DEFAULT_STYLE, wxWindowID id = 0, - const wxString& name = wxStatusLineNameStr); + const wxString& name = wxStatusBarNameStr); /** Creates a toolbar at the top or left of the frame. @@ -265,7 +274,7 @@ public: @see CreateStatusBar(), OnCreateToolBar(), SetToolBar(), GetToolBar() */ - virtual wxToolBar* CreateToolBar(long style = wxBORDER_NONE | wxTB_HORIZONTAL, + virtual wxToolBar* CreateToolBar(long style = wxTB_DEFAULT_STYLE, wxWindowID id = wxID_ANY, const wxString& name = wxToolBarNameStr); @@ -436,5 +445,10 @@ public: Associates a toolbar with the frame. */ virtual void SetToolBar(wxToolBar* toolBar); + + + void PushStatusText(const wxString &text, int number = 0); + void PopStatusText(int number = 0); + };