+#if wxUSE_STATTEXT
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) )
+ {
+ wxStaticText* pControl = (wxStaticText*) m_validatorWindow;
+ if (m_pString)
+ {
+ pControl->SetLabel(*m_pString) ;
+ return true;
+ }
+ } else
+#endif
+#if wxUSE_TEXTCTRL
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
+ {
+ wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
+ if (m_pString)
+ {
+ pControl->SetValue(*m_pString) ;
+ return true;
+ }
+ else if (m_pInt)
+ {
+ wxString str;
+ str.Printf(wxT("%d"), *m_pInt);
+ pControl->SetValue(str);
+ return true;
+ }
+ } else
+#endif
+
+ // array controls
+#if wxUSE_CHECKLISTBOX
+ // NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxCheckListBox)) )
+ {
+ wxCheckListBox* pControl = (wxCheckListBox*) m_validatorWindow;
+ if (m_pArrayInt)
+ {
+ // clear all selections
+ size_t i,
+ count = pControl->GetCount();
+ for ( i = 0 ; i < count; i++ )
+ pControl->Check(i, false);
+
+ // select each item in our array
+ count = m_pArrayInt->GetCount();
+ for ( i = 0 ; i < count; i++ )
+ pControl->Check(m_pArrayInt->Item(i));
+
+ return true;
+ }
+ else
+ return false;
+ } else