Recent

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

GAN

  • Full Member
  • ***
  • Posts: 224
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 1.8.4 FPC 3.0.4 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html

jamie

  • Hero Member
  • *****
  • Posts: 1990
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?

bytebites

  • Full Member
  • ***
  • Posts: 206
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

  • Full Member
  • ***
  • Posts: 224
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 1.8.4 FPC 3.0.4 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html