[Overview][Types][Classes][Procedures and functions][Index] |
Adjusts the width of columns in the list view according to the overall width for the control.
Source position: shellctrls.pas line 279
protected procedure TCustomShellListView.AdjustColWidths; |
AdjustColWidths is a method used to adjust the width of columns according to the overall width for the control. It ensures that the columns are proportionately sized in the control layout.
No actions are performed in the method when the control has fewer than three (3) columns, or when AutoSizeColumns is False and an explicit value has been assigned to the first column in the control.
An arbitrary width of 400 pixels is used to determine the adjusted width for each of the columns.
If the control has more than three columns, the widths for the remaining columns are not altered.
AdjustColWidths calls BeginUpdate prior to updating the column widths, and calls EndUpdate when column layout has been updated.
AdjustColWidths is called from the Create constructor, from the DoOnResize method, and when a new value is assigned to AutoSizeColumns property.
|
Indicates if columns in the control are automatically resized to fill the client display area. |
|
|
Constructor for the class instance. |
|
|
Adjusts column widths when the control is resized. |
|
|
The width of the client area for the control. |
|
|
Collection with the column definitions for the list view control (size, alignment, image index, etc.). |
Version 4.0 | Generated 2025-05-03 | Home |