Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set TShellListView Persistent Column Widths in Code

Is there any way to persistently set the column widths on a Delphi 2007 TShellListView in vsReport mode using code? The normal ShellListView.Columns[0].Width property only sets the width for the current directory, and that width is reset after every change of the current directory or refresh of the file list (including refreshes and directory changes made via code, the user double-clicking a folder, etc.).

like image 376
Anagoge Avatar asked Apr 23 '26 00:04

Anagoge


1 Answers

Use its Columns property:

ShellListView.Columns[0].Width := 200;
like image 82
Rob Kennedy Avatar answered Apr 25 '26 07:04

Rob Kennedy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!