Recent

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

RedOctober

  • Sr. Member
  • ****
  • Posts: 300
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.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2362
    • havefunsoft.com
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 https://www.patreon.com/skalogryz