Control Listview works OK under Windows and behaves very bad in Linux. And some people have reported bad icon management of ListView in Mac OS.
This bug has more than 1 year without solution from Lazarus developer team.
I have reported newly this in:
http://bugs.freepascal.org/view.php?id=16238The scenario is this:
I have a ListView named ListView1 , two buttons Button1 and Button2,
two imagelist, ImageList1 and ImageList2.
ImageList1 contains 3 .png images of 16x16 pixels, Image2 has 3 .png of 48x48 pixels.
ListView has 3 items. It is configured to show 1 column in report mode.
ListView1 has SmallImages:=ImageList1 and LargeImages:=ImageList2.
Button1Click has only 1 line of code: ListView1.ViewStyle:=vsReport;
Button2Click has only 1 line: ListView1.ViewStyle:=vsIcon;
In Linux, the ListView do not show icons in mode vsIcon;
in Windows, same code show icons correctly.
In mode vsSmallIcons the control do not show anything (in Linux).
The problem occurs in Lazarus 0.9.28.2 beta with FPC 2.2.4 in Ubuntu 9.10 and in Puppy Linux 4.3.1. And was reported by another user using Lazarus 0.9.29 with FPC 2.5.1. I am convinced that it is not caused by gtk version. I think that the problem is a bug in ListView LCL component for Linux. Please correct me.
Does anybody know a workaround? Maybe some similar control
that can show icons in a list of elements in Linux?
Can contact me at: alejandro.lavarello (at) gmail . com