Default constructor.
-\func{}{wxStatusBar}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{}{wxStatusBar}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
\param{long}{ style = wxST\_SIZEGRIP},\rtfsp
\param{const wxString\& }{name = ``statusBar"}}
\membersection{wxStatusBar::Create}\label{wxstatusbarcreate}
-\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
\param{long}{ style = wxST\_SIZEGRIP},\rtfsp
\param{const wxString\& }{name = ``statusBar"}}
#ifndef _WX_GENERIC_STATUSBR_H_
#define _WX_GENERIC_STATUSBR_H_
-#include "wx/defs.h"
-
-#if wxUSE_STATUSBAR
-
#include "wx/pen.h"
-#include "wx/font.h"
-#include "wx/statusbr.h"
#include "wx/arrstr.h"
-extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[];
-
class WXDLLEXPORT wxStatusBarGeneric : public wxStatusBarBase
{
public:
wxStatusBarGeneric() { Init(); }
wxStatusBarGeneric(wxWindow *parent,
- wxWindowID winid,
- const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxFULL_REPAINT_ON_RESIZE,
- const wxString& name = wxPanelNameStr)
- {
- Init();
-
- Create(parent, winid, pos, size, style, name);
- }
- wxStatusBarGeneric(wxWindow *parent,
- wxWindowID winid,
- long style,
- const wxString& name = wxPanelNameStr)
+ wxWindowID winid = wxID_ANY,
+ long style = wxST_SIZEGRIP,
+ const wxString& name = wxStatusBarNameStr)
{
Init();
virtual ~wxStatusBarGeneric();
- bool Create(wxWindow *parent, wxWindowID winid,
- const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
- const wxSize& WXUNUSED(size) = wxDefaultSize,
- long style = wxFULL_REPAINT_ON_RESIZE,
- const wxString& name = wxPanelNameStr)
- {
- return Create(parent, winid, style, name);
- }
-
- bool Create(wxWindow *parent, wxWindowID winid,
- long style,
- const wxString& name = wxPanelNameStr);
+ bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
+ long style = wxST_SIZEGRIP,
+ const wxString& name = wxStatusBarNameStr);
// Create status line
virtual void SetFieldsCount(int number = 1,
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBarGeneric)
};
-#endif // wxUSE_STATUSBAR
-
#endif
// _WX_GENERIC_STATUSBR_H_
DECLARE_DYNAMIC_CLASS(wxStatusBarMac)
wxStatusBarMac();
- wxStatusBarMac(wxWindow *parent, wxWindowID id,
- long style = 0,
- const wxString& name = wxPanelNameStr);
+ wxStatusBarMac(wxWindow *parent, wxWindowID id = wxID_ANY,
+ long style = wxST_SIZEGRIP,
+ const wxString& name = wxStatusBarNameStr);
virtual ~wxStatusBarMac();
- bool Create(wxWindow *parent, wxWindowID id,
- long style ,
- const wxString& name = wxPanelNameStr);
+ bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
+ long style = wxST_SIZEGRIP,
+ const wxString& name = wxStatusBarNameStr);
virtual void DrawFieldText(wxDC& dc, int i);
virtual void DrawField(wxDC& dc, int i);
wxStatusBar95(wxWindow *parent,
wxWindowID id = wxID_ANY,
long style = wxST_SIZEGRIP,
- const wxString& name = wxEmptyString)
+ const wxString& name = wxStatusBarNameStr)
{
(void)Create(parent, id, style, name);
}
bool Create(wxWindow *parent,
wxWindowID id = wxID_ANY,
long style = wxST_SIZEGRIP,
- const wxString& name = wxEmptyString);
+ const wxString& name = wxStatusBarNameStr);
virtual ~wxStatusBar95();
#include "wx/list.h"
#include "wx/dynarray.h"
+extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxStatusBarNameStr[];
+
WX_DECLARE_LIST(wxString, wxListString);
// ----------------------------------------------------------------------------
#pragma hdrstop
#endif
+#if wxUSE_STATUSBAR
+
#include "wx/statusbr.h"
#ifndef WX_PRECOMP
#include "wx/frame.h"
#endif //WX_PRECOMP
-#if wxUSE_STATUSBAR
-
#include "wx/listimpl.cpp"
WX_DEFINE_LIST(wxListString)
+const wxChar wxStatusBarNameStr[] = wxT("statusBar");
+
// ============================================================================
// wxStatusBarBase implementation
// ============================================================================
#include "wx/statusbr.h"
#ifndef WX_PRECOMP
- #include "wx/frame.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
#endif
#ifdef __WXGTK20__
-#include "wx/gtk/private.h"
-#include "wx/gtk/win_gtk.h"
+ #include <gtk/gtk.h>
+ #include "wx/gtk/win_gtk.h"
#endif
// we only have to do it here when we use wxStatusBarGeneric in addition to the
long style,
const wxString& name)
{
+ style |= wxTAB_TRAVERSAL | wxFULL_REPAINT_ON_RESIZE;
if ( !wxWindow::Create(parent, id,
wxDefaultPosition, wxDefaultSize,
- style | wxTAB_TRAVERSAL, name) )
+ style, name) )
return false;
// The status bar should have a themed background