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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -