git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5847
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/statusbr.h"
#include "wx/app.h"
#include "wx/frame.h"
#include "wx/statusbr.h"
- #include "wx/datetime.h"
#include "wx/timer.h"
#include "wx/checkbox.h"
#include "wx/statbmp.h"
#include "wx/timer.h"
#include "wx/checkbox.h"
#include "wx/statbmp.h"
#include "wx/msgdlg.h"
#endif
#include "wx/msgdlg.h"
#endif
+#include "wx/datetime.h"
+
// ----------------------------------------------------------------------------
// resources
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// resources
// ----------------------------------------------------------------------------
// MyStatusBar
// ----------------------------------------------------------------------------
// MyStatusBar
// ----------------------------------------------------------------------------
+#ifdef __VISUALC__
+ // 'this' : used in base member initializer list -- so what??
+ #pragma warning(disable: 4355)
+#endif
+
MyStatusBar::MyStatusBar(wxWindow *parent)
: wxStatusBar(parent, -1), m_timer(this)
{
MyStatusBar::MyStatusBar(wxWindow *parent)
: wxStatusBar(parent, -1), m_timer(this)
{
m_checkbox = new wxCheckBox(this, StatusBar_Checkbox, _T("&Toggle clock"));
m_checkbox->SetValue(TRUE);
m_checkbox = new wxCheckBox(this, StatusBar_Checkbox, _T("&Toggle clock"));
m_checkbox->SetValue(TRUE);
- m_statbmp = new wxStaticBitmap(this, -1, wxICON(green));
+ m_statbmp = new wxStaticBitmap(this, -1, wxIcon(green_xpm));
+ SetMinHeight(BITMAP_SIZE_Y);
+
+#ifdef __VISUALC__
+ #pragma warning(default: 4355)
+#endif
+
MyStatusBar::~MyStatusBar()
{
if ( m_timer.IsRunning() )
MyStatusBar::~MyStatusBar()
{
if ( m_timer.IsRunning() )
- m_statbmp->SetIcon(wxICON(green));
+ m_statbmp->SetIcon(wxIcon(green_xpm));
- m_statbmp->SetIcon(wxICON(red));
+ m_statbmp->SetIcon(wxIcon(red_xpm));
SetStatusText("", Field_Clock);
}
SetStatusText("", Field_Clock);
}