Author Topic: TListView "ItemAtPos" missing  (Read 416 times)


  • Sr. Member
  • ****
  • Posts: 337
TListView "ItemAtPos" missing
« on: January 23, 2020, 08:09:51 pm »
Platform:  Lazarus 1.8.4  FPC 3.0.4

I'm transferring an old Delphi app to Lazarus and the old app uses a TListBox with an .ItemAtPos  to get the item that the user has their cursor hovering over at the moment.  I'd rather use a TListView to display the list of items, but I noticed that there is no "ItemAtPos" function.  Am I looking in the wrong spot? What function of TListView can give me the current Item that the user is hovering their cursor over?  Thanks in advance.


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
Re: TListView "ItemAtPos" missing
« Reply #1 on: January 23, 2020, 08:15:20 pm »
Code: Pascal  [Select][+][-]
  1. ListView1.GetItemAt(x, y)
Patron Cocoa Widgetset development


TinyPortal © 2005-2018