Recent

Author Topic: [SOLVED] TListView - column alignment doesn't work when OwnerData  (Read 2468 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Hi,

I have column alignment taRightJustify. When using as "normal" listview then everything is ok but with OwnerData, data is always taLeftJustify (but column title is ok). Is it a bug or need I set some extra property?

Regards.
« Last Edit: January 03, 2015, 02:19:08 pm by Dibo »

kapibara

  • Hero Member
  • *****
  • Posts: 654
Re: TListView - column alignment doesn't work when OwnerData
« Reply #1 on: December 31, 2014, 09:17:45 pm »
When testing, it seems to work fine here (64 bit trunk and 32 bit release). Maybe some other settings you made can affect this. Compare with the attached project, its taRightJustified.
Lazarus trunk / fpc 3.2.2 / Kubuntu 24.04 - 64 bit

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: TListView - column alignment doesn't work when OwnerData
« Reply #2 on: December 31, 2014, 09:26:02 pm »
Forgot write details:

Lazarus 1.2.6
FPC 2.6.4
Kubuntu 14.04 64 bit (Qt widgetset)

kapibara

  • Hero Member
  • *****
  • Posts: 654
Re: TListView - column alignment doesn't work when OwnerData
« Reply #3 on: January 01, 2015, 01:13:50 am »
Not a Linux whiz, but under Ubuntu 12.04 64-bit (LXDE) it works. Lazarus 1.2.0

FPC 2.6.2, Laz 1.2.0 64 bit, GTK 2

Also noticed that ListView checkboxes can be shown under Linux even if OwnerData is enabled. That doesn't work under windows.
Lazarus trunk / fpc 3.2.2 / Kubuntu 24.04 - 64 bit

Dibo

  • Hero Member
  • *****
  • Posts: 1057
Re: TListView - column alignment doesn't work when OwnerData
« Reply #4 on: January 03, 2015, 02:18:45 pm »
I reported this issue. Bug is fixed in latest Lazarus from SVN

 

TinyPortal © 2005-2018