don't allow TABbing away from the list control while the label is being edited (fixes bug 555749)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1284,6 +1284,12 @@ wxTextCtrl* wxListCtrl::EditLabel(long item, wxClassInfo* textControlClass)
|
||||
m_textCtrl->SubclassWin(hWnd);
|
||||
m_textCtrl->SetParent(this);
|
||||
|
||||
// we must disallow TABbing away from the control while the edit contol is
|
||||
// shown because this leaves it in some strange state (just try removing
|
||||
// this line and then pressing TAB while editing an item in listctrl
|
||||
// inside a panel)
|
||||
m_textCtrl->SetWindowStyle(m_textCtrl->GetWindowStyle() | wxTE_PROCESS_TAB);
|
||||
|
||||
return m_textCtrl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user