#include "wx/slider.h"
#endif
-
- #include "wx/spinctrl.h"
+#include "wx/spinctrl.h"
#if wxUSE_SPINBTN
#include "wx/spinbutt.h"
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
#endif
+#if wxUSE_TOGGLEBTN
+ #include "wx/tglbtn.h"
+#endif
#include "wx/valgen.h"
}
} else
#endif
+#if wxUSE_TOGGLEBTN
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxToggleButton)) )
+ {
+ wxToggleButton * pControl = (wxToggleButton *) m_validatorWindow;
+ if (m_pBool)
+ {
+ pControl->SetValue(*m_pBool);
+ return true;
+ }
+ } else
+#endif
// int controls
#if wxUSE_GAUGE
}
} else
#endif
+
// array controls
#if wxUSE_CHECKLISTBOX
// NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
}
} else
#endif
+#if wxUSE_TOGGLEBTN
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxToggleButton)) )
+ {
+ wxToggleButton *pControl = (wxToggleButton *) m_validatorWindow;
+ if (m_pBool)
+ {
+ *m_pBool = pControl->GetValue() ;
+ return true;
+ }
+ } else
+#endif
// INT CONTROLS ***************************************
#if wxUSE_GAUGE