Lazarus

Programming => LCL => Topic started by: GAN on August 15, 2019, 06:11:08 am

Title: Possible bug in TListView (or GTK).
Post by: GAN on August 15, 2019, 06:11:08 am
When trying to change a image of TListView, nothing happends on GTK2 but works fine on Win7. Lazarus 1.8.4 in both cases.

Example project attached.
Title: Re: Possible bug in TListView (or GTK).
Post by: jamie on August 15, 2019, 07:06:29 pm
have you considered moving up to Lazarus 2.0.4, or are you saying that does not work?
Title: Re: Possible bug in TListView (or GTK).
Post by: bytebites on August 15, 2019, 07:20:07 pm
Trunk version does not work either, but reassigning the imagelist helps.
Code: Pascal  [Select]
  1. ListView1.SmallImages:=nil;
  2. ListView1.SmallImages:=ImageList1;
Title: Re: Possible bug in TListView (or GTK).
Post by: GAN on August 15, 2019, 08:07:36 pm
Trunk version does not work either, but reassigning the imagelist helps.
Code: Pascal  [Select]
  1. ListView1.SmallImages:=nil;
  2. ListView1.SmallImages:=ImageList1;

Thank you, that works fine.