implemented wxTextEntry for wxMotif, made wxComboBox derive from it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,15 +85,12 @@ wxTextEntry *wxTextValidator::GetTextEntry()
|
||||
}
|
||||
#endif
|
||||
|
||||
// FIXME: in wxMotif wxComboBox doesn't derive from wxTextCtrl yet
|
||||
#ifndef __WXMOTIF__
|
||||
#if wxUSE_COMBOBOX
|
||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)))
|
||||
{
|
||||
return (wxComboBox*)m_validatorWindow;
|
||||
}
|
||||
#endif
|
||||
#endif // !__WXMOTIF__
|
||||
|
||||
wxFAIL_MSG(
|
||||
_T("wxTextValidator can only be used with wxTextCtrl or wxComboBox")
|
||||
|
||||
Reference in New Issue
Block a user