Recent

Author Topic: [SOLVED] Listview Row height  (Read 1803 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
[SOLVED] Listview Row height
« on: February 12, 2022, 09:41:52 pm »
How can I change the row height in a Listview without changing the fontsize?
« Last Edit: February 15, 2022, 04:28:11 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Listview Row height
« Reply #1 on: February 12, 2022, 10:20:53 pm »
But why does it have to be a TListView? Wouldn't a TStringGrid be enough? It can be taylored to almost look like a TListView, and you have much more and easier control of almost every feature.

But anyway... Found this nice idea in https://stackoverflow.com/questions/7060617/how-to-increase-row-height-of-listview-in-report-style
  • Add an imagelist
  • Set its Width to 1 and Height to the row height needed
  • Assign it to the StateImages of the ListView which are rarely used.
« Last Edit: February 12, 2022, 10:22:44 pm by wp »

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: Listview Row height
« Reply #2 on: February 15, 2022, 04:27:07 pm »
Thanks
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

 

TinyPortal © 2005-2018