Don't accept picker text events from any old text control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,14 +96,14 @@ bool wxPickerBase::CreateBase(wxWindow *parent,
|
|||||||
// set the initial contents of the textctrl
|
// set the initial contents of the textctrl
|
||||||
m_text->SetValue(text);
|
m_text->SetValue(text);
|
||||||
|
|
||||||
m_text->Connect(wxEVT_COMMAND_TEXT_UPDATED,
|
m_text->Connect(m_text->GetId(), wxEVT_COMMAND_TEXT_UPDATED,
|
||||||
wxCommandEventHandler(wxPickerBase::OnTextCtrlUpdate),
|
wxCommandEventHandler(wxPickerBase::OnTextCtrlUpdate),
|
||||||
NULL, this);
|
NULL, this);
|
||||||
m_text->Connect(wxEVT_KILL_FOCUS,
|
m_text->Connect(m_text->GetId(), wxEVT_KILL_FOCUS,
|
||||||
wxFocusEventHandler(wxPickerBase::OnTextCtrlKillFocus),
|
wxFocusEventHandler(wxPickerBase::OnTextCtrlKillFocus),
|
||||||
NULL, this);
|
NULL, this);
|
||||||
|
|
||||||
m_text->Connect(wxEVT_DESTROY,
|
m_text->Connect(m_text->GetId(), wxEVT_DESTROY,
|
||||||
wxWindowDestroyEventHandler(wxPickerBase::OnTextCtrlDelete),
|
wxWindowDestroyEventHandler(wxPickerBase::OnTextCtrlDelete),
|
||||||
NULL, this);
|
NULL, this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user