- if (m_validatorWindow->IsKindOf(CLASSINFO(wxChoice)) )
- {
- wxChoice* pControl = (wxChoice*) m_validatorWindow;
- if (m_pInt)
- {
- *m_pInt = pControl->GetSelection() ;
- return TRUE;
- }
- else if (m_pString)
- {
- *m_pString = pControl->GetStringSelection();
- return TRUE;
- }
- } else
-#endif
- if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) )
- {
- wxStaticText* pControl = (wxStaticText*) m_validatorWindow;
- if (m_pString)
- {
- *m_pString = pControl->GetLabel() ;
- return TRUE;
- }
- } else
- if (m_validatorWindow->IsKindOf(CLASSINFO(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 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 our array
- m_pArrayInt->Clear();
- // add each selected item to our array
- int i;
- for (i = 0 ; i < pControl->Number(); ++i)
- if (pControl->IsChecked(i))
- m_pArrayInt->Add(i);
- return TRUE;
- }
- else
- return FALSE;
- } else
+ if (m_validatorWindow->IsKindOf(CLASSINFO(wxChoice)) )
+ {
+ wxChoice* pControl = (wxChoice*) m_validatorWindow;
+ if (m_pInt)
+ {
+ *m_pInt = pControl->GetSelection() ;
+ return true;
+ }
+ else if (m_pString)
+ {
+ *m_pString = pControl->GetStringSelection();
+ return true;
+ }
+ } else