Fix wxListCtrl::EndEditLabel() which simply didn't work.

Also document it (even though it's wxMSW-only for now) and add a test for it
in the sample.

Closes #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-20 22:04:03 +00:00
parent 212e8ef365
commit 747eb0f686
3 changed files with 38 additions and 15 deletions

View File

@@ -247,6 +247,23 @@ public:
wxTextCtrl* EditLabel(long item,
wxClassInfo* textControlClass = CLASSINFO(wxTextCtrl));
/**
Finish editing the label.
This method allows to programmatically end editing a list control item
in place. Usually it will only be called when editing is in progress,
i.e. if GetEditControl() returns non-NULL.
Currently only implemented in wxMSW.
@param cancel If @true, discard the changes made by user, as if @c
Escape key was pressed. Otherwise, accept the changes as if @c
Return was pressed.
@return @true if item editing wad finished or @false if no item as
being edited.
*/
bool EndEditLabel(bool cancel);
/**
Ensures this item is visible.
*/