+void SpinBtnWidgetsPage::OnButtonSetBase(wxCommandEvent& WXUNUSED(event))
+{
+ unsigned long base;
+ if ( !m_textBase->GetValue().ToULong(&base) || !base )
+ {
+ wxLogWarning("Invalid base value.");
+ return;
+ }
+
+ m_base = base;
+ if ( !m_spinctrl->SetBase(m_base) )
+ {
+ wxLogWarning("Setting base %d failed.", m_base);
+ }
+}
+