Recent

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

GAN

  • Sr. Member
  • ****
  • Posts: 370
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.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

jamie

  • Hero Member
  • *****
  • Posts: 6130
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: 642
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: 370
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.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

 

TinyPortal © 2005-2018