Solved

Question about ListView component

Posted on 1998-04-02
2
156 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
[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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 105
Performance of SQL statement 37 147
Delphi...Split view - idea? 1 145
Firemonkey Queue list 1 51
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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

734 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