Solved

Question about ListView component

Posted on 1998-04-02
2
151 Views
Last Modified: 2010-05-18
I'm using a ListView component to display a list of files (similar to the filelist component)
Is there a way to get the item index of a particular file when the mouse cursor is over it??

The ViewStyle property of the ListView is fixed to vsIcon and I'm running Delphi 3.0 professional edition

Thanks in Advance,
Ermac

0
Comment
Question by:ermac
2 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1361250
From Delphi Help File:

GetItemAt returns the list item at the specified position.

function GetItemAt(X, Y: Integer): TListItem;

Description

Call GetItemAt to obtain the TListItem object for the list item found at the position specified by the X and Y parameters. X and Y specify the coordinates of the position, in pixels, relative to the top left corner of the list view. If there is no item at the location, GetItemAt returns nil.
0
 

Author Comment

by:ermac
ID: 1361251
What can I say?? You're really fast!! I've just posted the question 5 minutes ago...
For that I'm giving you a bonus of 25 points

Thanks a lot
Ermac
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

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…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

912 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

23 Experts available now in Live!

Get 1:1 Help Now