Recent

Author Topic: Possible bug in TListView (or GTK).  (Read 991 times)

GAN

  • Sr. Member
  • ****
  • Posts: 388
Possible bug in TListView (or GTK).
« 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.
Linux Mint Mate (allways)
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite - LazReport

jamie

  • Hero Member
  • *****
  • Posts: 7405
Re: Possible bug in TListView (or GTK).
« Reply #1 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?
The only true wisdom is knowing you know nothing

bytebites

  • Hero Member
  • *****
  • Posts: 767
Re: Possible bug in TListView (or GTK).
« Reply #2 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;

GAN

  • Sr. Member
  • ****
  • Posts: 388
Re: Possible bug in TListView (or GTK).
« Reply #3 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.
Linux Mint Mate (allways)
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite - LazReport

 

TinyPortal © 2005-2018