Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problems with TListView

Posted on 1998-03-12
4
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

705 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