void wxListTextCtrlWrapper::EndEdit(bool discardChanges)
{
m_aboutToFinish = true;
-
+
if ( discardChanges )
{
m_owner->OnRenameCancelled(m_itemEdited);
-
+
Finish( true );
}
else
m_owner->ResetTextControl( m_text );
wxPendingDelete.Append( this );
-
+
if (setfocus)
m_owner->SetFocusIgnoringChildren();
}
sx = mySize.x;
m_text->SetSize(sx, wxDefaultCoord);
}
-
+
event.Skip();
}