+#if wxUSE_TEXTCTRL
+ if (wxDynamicCast(m_validatorWindow, wxTextCtrl))
+ {
+ wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
+ if (m_pString)
+ {
+ *m_pString = pControl->GetValue() ;
+ return true;
+ }
+ else if (m_pInt)
+ {
+ *m_pInt = wxAtoi(pControl->GetValue());
+ return true;
+ }
+ else if (m_pFileName)
+ {
+ m_pFileName->Assign(pControl->GetValue());
+ return true;
+ }
+ else if (m_pFloat)
+ {
+ *m_pFloat = (float)wxAtof(pControl->GetValue());
+ return true;
+ }
+ else if (m_pDouble)
+ {
+ *m_pDouble = wxAtof(pControl->GetValue());
+ return true;
+ }
+ } else
+#endif
+
+ // ARRAY CONTROLS *************************************
+#if wxUSE_CHECKLISTBOX
+ // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox MUST come first:
+ if (wxDynamicCast(m_validatorWindow, wxCheckListBox))
+ {
+ wxCheckListBox* pControl = (wxCheckListBox*) m_validatorWindow;
+ if (m_pArrayInt)
+ {
+ // clear our array
+ m_pArrayInt->Clear();
+
+ // add each selected item to our array
+ size_t i,
+ count = pControl->GetCount();
+ for ( i = 0; i < count; i++ )
+ {
+ if (pControl->IsChecked(i))
+ m_pArrayInt->Add(i);
+ }
+
+ return true;
+ }
+ else
+ return false;
+ } else