#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 wxUSE_GAUGE
#include "icons/gauge.xpm"
// ----------------------------------------------------------------------------
wxTimer *m_timer;
private:
- DECLARE_EVENT_TABLE();
- DECLARE_WIDGETS_PAGE(GaugeWidgetsPage);
+ DECLARE_EVENT_TABLE()
+ DECLARE_WIDGETS_PAGE(GaugeWidgetsPage)
};
// ----------------------------------------------------------------------------
_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"));
wxSizer *sizerRight = new wxBoxSizer(wxHORIZONTAL);
m_gauge = new wxGauge(this, GaugePage_Gauge, m_range);
sizerRight->Add(m_gauge, 1, wxCENTRE | wxALL, 5);
- sizerRight->SetMinSize(250, 0);
+ sizerRight->SetMinSize(150, 0);
m_sizerGauge = sizerRight; // save it to modify it later
// the 3 panes panes compose the window
{
val = m_gauge->GetValue();
- m_sizerGauge->Remove(m_gauge);
+ m_sizerGauge->Detach( m_gauge );
delete m_gauge;
}
wxLogMessage(_T("Progress finished."));
}
+#endif
+ // wxUSE_GAUGE