MyPanel *GetPanel() const { return m_panel; }
private:
+#if wxUSE_STATUSBAR
void UpdateStatusBar(const wxPoint& pos, const wxSize& size)
{
if ( m_frameStatusBar )
SetStatusText(msg, 1);
}
}
+#endif // wxUSE_STATUSBAR
MyPanel *m_panel;
{
static wxColour s_colOld;
+ SetThemeEnabled(false);
// test panel colour changing and propagation to the subcontrols
if ( s_colOld.Ok() )
{
SetBackgroundColour(s_colOld);
s_colOld = wxNullColour;
- m_lbSelectThis->SetForegroundColour(wxT("red"));
- m_lbSelectThis->SetBackgroundColour(wxT("white"));
+ m_lbSelectThis->SetForegroundColour(wxNullColour);
+ m_lbSelectThis->SetBackgroundColour(wxNullColour);
}
else
{
SetMenuBar(menu_bar);
+#if wxUSE_STATUSBAR
CreateStatusBar(2);
+#endif // wxUSE_STATUSBAR
m_panel = new MyPanel( this, 10, 10, 300, 100 );
void MyFrame::OnMove( wxMoveEvent& event )
{
+#if wxUSE_STATUSBAR
UpdateStatusBar(event.GetPosition(), GetSize());
+#endif // wxUSE_STATUSBAR
event.Skip();
}
void MyFrame::OnSize( wxSizeEvent& event )
{
+#if wxUSE_STATUSBAR
UpdateStatusBar(GetPosition(), event.GetSize());
+#endif // wxUSE_STATUSBAR
event.Skip();
}
#endif
);
+#if wxUSE_STATUSBAR
SetStatusText(msg);
+#endif // wxUSE_STATUSBAR
}
}