Recent

Author Topic: How to work with ListView OwnerData=true, or draw img+caption when displaying  (Read 1665 times)

poiuyt555

  • Jr. Member
  • **
  • Posts: 91
Hi.
i add items to listview in mode OwnerData=false:
li              := listview1.Items.Add();
li.caption := fs[j];
Then add LargeImages and SmallImages - it works
But it is slow and do not works with many files.

I want to display images (large or small) when i view the listview (after all elements are added).
And when i scroll the listview it must get large image and repaint it.

How can i do this?

I try to find some Event where i can add images (in ownerdata=false mode): i try ListView1CustomDrawItem, but i can't.

May be use  OwnerData=true, but in this mode:
How to paint the icons and filename?

q3: is component VirtualListView faster than ListView?
If it is - Where i can dowload it and is some examples of using it?
« Last Edit: March 29, 2013, 05:45:12 pm by poiuyt555 »

 

TinyPortal © 2005-2018