From: Robin Dunn Date: Mon, 8 Mar 2004 23:16:10 +0000 (+0000) Subject: default style for statusbars varies by platform X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69d818954b5e6e7b4b4e5093dd26dbe2d5f8546c default style for statusbars varies by platform git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index 5bf1501ace..689847ac6d 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -544,6 +544,13 @@ enum { }; +#ifdef __WXGTK__ +#define wxDEFAULT_STATUSBAR_STYLE wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE +#else +#define wxDEFAULT_STATUSBAR_STYLE wxST_SIZEGRIP +#endif + + enum wxGeometryCentre { diff --git a/wxPython/src/_statusbar.i b/wxPython/src/_statusbar.i index 6888f583bd..ba4a4b92c0 100644 --- a/wxPython/src/_statusbar.i +++ b/wxPython/src/_statusbar.i @@ -22,6 +22,7 @@ %newgroup; + // wxStatusBar: a window near the bottom of the frame used for status info class wxStatusBar : public wxWindow { @@ -30,7 +31,7 @@ public: %pythonAppend wxStatusBar() "" wxStatusBar(wxWindow* parent, wxWindowID id = -1, - long style = wxST_SIZEGRIP, + long style = wxDEFAULT_STATUSBAR_STYLE, const wxString& name = wxPyStatusLineNameStr); %name(PreStatusBar)wxStatusBar(); diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index fc1f7a25a5..1d2ffdd75a 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -156,7 +156,7 @@ public: // create the main status bar by calling OnCreateStatusBar() virtual wxStatusBar* CreateStatusBar(int number = 1, - long style = wxST_SIZEGRIP, + long style = wxDEFAULT_STATUSBAR_STYLE, wxWindowID winid = 0, const wxString& name = wxPyStatusLineNameStr); // TODO: with directors?