OK, wxMSW doesn't seem to send the end label edit event
for wxListCtrls if the label editing was cancelled. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3096,6 +3096,10 @@ bool wxListMainWindow::OnRenameAccept(size_t itemEdit, const wxString& value)
|
|||||||
|
|
||||||
void wxListMainWindow::OnRenameCancelled(size_t itemEdit)
|
void wxListMainWindow::OnRenameCancelled(size_t itemEdit)
|
||||||
{
|
{
|
||||||
|
// wxMSW seems not to notify the program about
|
||||||
|
// cancelled label edits.
|
||||||
|
return;
|
||||||
|
|
||||||
// let owner know that the edit was cancelled
|
// let owner know that the edit was cancelled
|
||||||
wxListEvent le( wxEVT_COMMAND_LIST_END_LABEL_EDIT, GetParent()->GetId() );
|
wxListEvent le( wxEVT_COMMAND_LIST_END_LABEL_EDIT, GetParent()->GetId() );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user