Solved

Problems with TListView

Posted on 1998-03-12
4
249 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 156
URL for downloading Google Chrome for Win XP 2 191
DBCtrlGrid, Delphi, Scroll 7 26
firemonkey Android Listview Sort items 7 53
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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