[DUG] Move mouse to ListItem
Jolyon Smith
jsmith at deltics.co.nz
Fri Mar 4 17:01:27 NZDT 2011
These fragments should set you down the right road, at least: J
uses CommCtrl
var
rc: TRect;
idx: Integer;
begin
idx := Listview.Selected.Index;
ListView_GetItemRect( Listview.Handle, idx, rc, LVIR_BOUNDS );
end;
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Ross Levis
Sent: Friday, 4 March 2011 16:50
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Move mouse to ListItem
On a keyboard shortcut I want to move the mouse to the start of the
currently selected item in a listview. I know how to move the mouse but I'm
not sure how to get the x,y position of the selected item in relation to the
listview. Any ideas?
Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110304/3a4b2e2a/attachment.html
More information about the Delphi
mailing list