- *m_pString = pControl->GetValue() ;
- return TRUE;
- }
- else if (m_pInt)
- {
- *m_pInt = wxAtoi(pControl->GetValue());
- return TRUE;
- }
- } else
- // array controls
-#if wxUSE_CHECKLISTBOX
-#ifndef __WIN16__
- // NOTE: wxCheckListBox isa wxListBox, so wxCheckListBox MUST come first:
- if (m_validatorWindow->IsKindOf(CLASSINFO(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
+ 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