Don't accept picker text events from any old text control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-03-16 13:50:37 +00:00
parent 304435501b
commit e70abc2dd7

View File

@@ -96,14 +96,14 @@ bool wxPickerBase::CreateBase(wxWindow *parent,
// set the initial contents of the textctrl
m_text->SetValue(text);
m_text->Connect(wxEVT_COMMAND_TEXT_UPDATED,
m_text->Connect(m_text->GetId(), wxEVT_COMMAND_TEXT_UPDATED,
wxCommandEventHandler(wxPickerBase::OnTextCtrlUpdate),
NULL, this);
m_text->Connect(wxEVT_KILL_FOCUS,
m_text->Connect(m_text->GetId(), wxEVT_KILL_FOCUS,
wxFocusEventHandler(wxPickerBase::OnTextCtrlKillFocus),
NULL, this);
m_text->Connect(wxEVT_DESTROY,
m_text->Connect(m_text->GetId(), wxEVT_DESTROY,
wxWindowDestroyEventHandler(wxPickerBase::OnTextCtrlDelete),
NULL, this);