Problems with TListView

I am using the TListView.
I want to put a button "changue name". When I clic this button I want to edit the Item.
How can I do this?
I tried tu use the following code:
  ListView.ItemFocused.EditCaption;
but it does not work.
jpussacqAsked:
Who is Participating?
 
bijoynConnect With a Mentor Commented:
Hi There,

U Know u are right in what u are doing. Except that u need to setfocus back to the ListView component and then say ListView1.Itemfocused.EditCaption. This works.

Bijoy
0
 
pjdbCommented:
Use ListView.ItemFocused.Caption instead

for example :
ListView.ItemFocused.Caption:=inputbox('caption', 'prompt', ListView.ItemFocused.Caption);

0
 
jpussacqAuthor Commented:
I want to put a button named "EDIT".
When I clic on the button, I want that the Item focused appears in edit mode.
For example: when you select a file in the "Windows Eplorer" and you clic in the menu "File/Change Name", then the file appears in edit mode. I want to do taht, but I canĀ“t.-
0
 
jpussacqAuthor Commented:
Adjusted points to 30
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.