Recent

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

RedOctober

  • Sr. Member
  • ****
  • Posts: 452
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: 2770
    • havefunsoft.com
Re: TListView "ItemAtPos" missing
« Reply #1 on: January 23, 2020, 08:15:20 pm »
Code: Pascal  [Select][+][-]
  1. ListView1.GetItemAt(x, y)

 

TinyPortal © 2005-2018