]> git.saurik.com Git - wxWidgets.git/commitdiff
default style for statusbars varies by platform
authorRobin Dunn <robin@alldunn.com>
Mon, 8 Mar 2004 23:16:10 +0000 (23:16 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 8 Mar 2004 23:16:10 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_defs.i
wxPython/src/_statusbar.i
wxPython/src/_toplvl.i

index 5bf1501ace0761c708f788c71cba653dfa9ce701..689847ac6d00e1c770bb2d733f8d33f28d95714e 100644 (file)
@@ -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
 {
index 6888f583bde23ee23095407f1306746358cb4bdc..ba4a4b92c0627e0bb9ad7d0c912fe18d3530b22a 100644 (file)
@@ -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();
 
index fc1f7a25a58b399846cf97054d853129b3acacd1..1d2ffdd75a697d5c3b60e7a6c53abde822f14c03 100644 (file)
@@ -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?