Returns the list item at the specified position.function GetItemAt(X, Y: Integer): TListItem;DescriptionCall 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.
procedure TForm1.ListView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); var vListItem: TListItem; begin vListItem := TListView(Sender).GetItemAt(X, Y); if not Assigned(vListItem) then Exit; Caption := vListItem.Caption; end;
Y: Integer);
var
vListItem: TListItem;
begin
vListItem := TListView(Sender).GetItemAt(X, Y);
if not Assigned(vListItem) then Exit;
Caption := vListItem.Caption;
end;