#include "wx/log.h"
#include "wx/timer.h"
+ #include "wx/bitmap.h"
#include "wx/button.h"
#include "wx/checkbox.h"
#include "wx/combobox.h"
#include "wx/sizer.h"
#include "widgets.h"
-#if 1
+#if wxUSE_GAUGE
#include "icons/gauge.xpm"
// ----------------------------------------------------------------------------
_T("Set &range"),
GaugePage_RangeText,
&m_textRange);
- m_textRange->SetValue(wxString::Format(_T("%lu"), m_range));
+ m_textRange->SetValue( wxString::Format(_T("%lu"), m_range) );
sizerMiddle->Add(sizerRow, 0, wxALL | wxGROW, 5);
btn = new wxButton(this, GaugePage_Progress, _T("Simulate &progress"));
{
val = m_gauge->GetValue();
- m_sizerGauge->Remove(m_gauge);
+ m_sizerGauge->Detach( m_gauge );
delete m_gauge;
}
event.Enable( m_chkVert->GetValue() || m_chkSmooth->GetValue() );
}
-void GaugeWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
+void GaugeWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
{
CreateGauge();
}
wxLogMessage(_T("Progress finished."));
}
-#endif
\ No newline at end of file
+#endif
+ // wxUSE_GAUGE