default style for statusbars varies by platform

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-08 23:16:10 +00:00
parent b887061dd1
commit 69d818954b
3 changed files with 10 additions and 2 deletions

View 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
{

View 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();

View 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?