I’m having an issue with TListView in 64 bit, Lazarus 2.0.4 FPC 3.0.4
This is on a Mac.
The issue didn’t occur in 32 bits.
I’m using a Virtual Listview so ownerdata is set to true and so I set the number of items wanted by setting ListView1.Items.Count :=N and then the Listview1Data routine gets called N times to fill up the data. That all works fine and as expected.
The problem occurs when, after the dialog is open, I need to change the number of items wanted in the TListView. For example, if I have 20, but want 200 rows, I set ListView1.Items.Count :=200 and then call Listview1.Refresh. The problem that happens is that I still only get 20 rows, not 200. The Listview1Data routine is only called 20 times, not 200, and it is for rows 0-19.
What is the way I’m supposed to change the number of rows in the TListView? And should I call something other than Listview1.Refresh to see the new number of rows?