Implement wxGenericListCtrl::EndEditLabel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2260,6 +2260,17 @@ wxTextCtrl *wxListMainWindow::EditLabel(long item, wxClassInfo* textControlClass
|
||||
return m_textctrlWrapper->GetText();
|
||||
}
|
||||
|
||||
bool wxListMainWindow::EndEditLabel(bool cancel)
|
||||
{
|
||||
if (!m_textctrlWrapper)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
m_textctrlWrapper->EndEdit(cancel ? wxListTextCtrlWrapper::End_Discard : wxListTextCtrlWrapper::End_Accept);
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxListMainWindow::OnRenameTimer()
|
||||
{
|
||||
wxCHECK_RET( HasCurrent(), wxT("unexpected rename timer") );
|
||||
@@ -5070,6 +5081,13 @@ wxTextCtrl *wxGenericListCtrl::EditLabel(long item,
|
||||
return m_mainWin->EditLabel( item, textControlClass );
|
||||
}
|
||||
|
||||
#if wxABI_VERSION >= 30002
|
||||
bool wxGenericListCtrl::EndEditLabel(bool cancel)
|
||||
{
|
||||
return m_mainWin->EndEditLabel(cancel);
|
||||
}
|
||||
#endif
|
||||
|
||||
wxTextCtrl *wxGenericListCtrl::GetEditControl() const
|
||||
{
|
||||
return m_mainWin->GetEditControl();
|
||||
|
Reference in New Issue
Block a user