From 69d818954b5e6e7b4b4e5093dd26dbe2d5f8546c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 8 Mar 2004 23:16:10 +0000 Subject: [PATCH] default style for statusbars varies by platform git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_defs.i | 7 +++++++ wxPython/src/_statusbar.i | 3 ++- wxPython/src/_toplvl.i | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) 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? -- 2.50.0