ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Controls.BaseShellListView.TJamBaseShellListView.AutoAdjustColumnWidths

Auto adjust the widths of all columns.

Syntax
Pascal
procedure AutoAdjustColumnWidths(const pMinWidth: integer = 50; const pMaxWidth: integer = 750);
Parameters 
Description 
const pMinWidth: integer = 50 
For viewstyle vsList a minimum column width can be specified. Default 50. 
const pMaxWidth: integer = 750 
For viewstyle vsList a maximum column width can be specified. Default 750. 

Adjust the widths of all columns so that the size fits all visible content of each column, which means, no visible content will be truncated and no column will be larger than necessary.  

For viewStyle vsList calling the method will adjust the DefaultColumnWidth.