- pControl->SetLabel(*m_pString) ;
- return TRUE;
- }
- }
- else if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
- {
- wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
- if (m_pString)
- {
- pControl->SetValue(*m_pString) ;
- return TRUE;
- }
- } else
-#if wxUSE_CHECKLISTBOX
-#ifndef __WIN16__
- // array controls
- // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox
- // MUST come first:
- if (m_validatorWindow->IsKindOf(CLASSINFO(wxCheckListBox)) )
- {
- wxCheckListBox* pControl = (wxCheckListBox*) m_validatorWindow;
- if (m_pArrayInt)
- {
- // clear all selections
- int i;
- for (i = 0 ; i < pControl->Number(); ++i)
- pControl->Check(i, FALSE);
- // select each item in our array
- unsigned u;
- for (u = 0; u < m_pArrayInt->Count(); ++u)
- pControl->Check(m_pArrayInt->Item(u));
- return TRUE;
- }
- else
- return FALSE;
- } else
+ 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