Solved

Problems with TListView

Posted on 1998-03-12
4
246 Views
Last Modified: 2010-04-06
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.
0
Comment
Question by:jpussacq
  • 2
4 Comments
 
LVL 1

Expert Comment

by:pjdb
ID: 1360449
Use ListView.ItemFocused.Caption instead

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

0
 

Author Comment

by:jpussacq
ID: 1360450
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
 

Author Comment

by:jpussacq
ID: 1360451
Adjusted points to 30
0
 

Accepted Solution

by:
bijoyn earned 30 total points
ID: 1360452
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now