Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problems with TListView

Posted on 1998-03-12
4
Medium Priority
?
253 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 120 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

885 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