listview - Does CancelEdit work on TListItem in a TListView in Delphi? -
if try
listview1.items[0].editcaption; it works expected allowing me edit first items caption, if while editing try
listview1.items[0].canceledit; it not cancel editing. there concept i'm missing, bug, or wrong?
this seems problem in delphi 2007 , xe2 (and others).
i think problem native control, vcl documented (calls listview_editlabel(handle, -1);), no effect. according documentation of listview_geteditcontrol, sending list view wm_cancelmode should work, doesn't.
a test here shows below works,
winapi.windows.setfocus(listview1.handle); interestingly listview1.setfocus doesn't.
Comments
Post a Comment