Lazarus

Programming => LCL => Topic started by: Arend041 on April 06, 2022, 02:09:13 pm

Title: Listview and headercontrol
Post by: Arend041 on April 06, 2022, 02:09:13 pm
LS,
with a list view (TListview), in report mode, it is impossible to move tabs/columns horizontally.
A header control (THeaderControl) offers that possibility and is also easy to connect to a list view.
But how can I make the header control scroll horizontally with the list view?
Title: Re: Listview and headercontrol
Post by: Arend041 on April 17, 2022, 10:41:10 am
Probably I have not worded my question correctly.
How can I synchronize the scroll position of the listview with the header sections.
When all the columns are visible, no link is needed, but when they are not all visible, it is necessary to have the header sections scroll with them.
Title: Re: Listview and headercontrol
Post by: wp on April 17, 2022, 12:30:12 pm
Whenever I tried to link a THeaderControl to a report-mode TListView I noticed that there is always an annoying delay between them. I think it is much better to use a TStringGrid instead of that combination. The TStringGrid can be set up to look almost like a report-mode TStringGrid.
Title: Re: Listview and headercontrol
Post by: Arend041 on April 18, 2022, 10:47:56 pm
Too bad I'm being deprived of how to link the two components. A possible delay I take at face value. So be it.
Title: Re: Listview and headercontrol
Post by: Arend041 on May 20, 2022, 04:56:59 pm
I've searched the internet but haven't found any code that links a HeaderControl to a ListView in report mode. Therefore another attempt to see if anyone here can help me further with some code.
Title: Re: Listview and headercontrol
Post by: ASerge on May 21, 2022, 06:53:33 pm
with a list view (TListview), in report mode, it is impossible to move tabs/columns horizontally.
ListView.FullDrag := True; enables drag-and-drop reordering of columns.
Title: Re: Listview and headercontrol
Post by: Arend041 on May 31, 2022, 12:38:39 pm
Thanks a lot.
TinyPortal © 2005-2018