[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ShellCtrls' (#lcl)

TCustomShellListView.Resize

Sets the size for Columns in the list view.

Declaration

Source position: shellctrls.pas line 230

protected procedure TCustomShellListView.Resize; override;

Description

Resize is a method used to set the size for Columns in the list view control. Resize calls the inherited method, and checks the Columns defined for the control. The Width property is used to determine the layout sizes applied to the columns for the control.

No actions (other than calling the inherited method) are performed if fewer than 3 (three) columns are defined for the control. This is the number of columns defined in the constructor for the vsReportViewStyle.

Resize is used in the implementation of the Create constructor, and can be called to adjust the layout for the control when the Width property has been changed.

See also

TCustomShellListView.Create

  

Constructor for the class instance.

TCustomListView.ViewStyle

  

Sets one of ListView layouts: List (simple column), Report (few columns with full width), Icon (big icons), Small Icon (small icons, 16x16).

TCustomListView.Columns

  

Collection with the column definitions for the list view control (size, alignment, image index, etc.).

TListColumns

  

TViewStyle

  

Represents the view styles available for the items in a list view control.

TControl.Width

  

The horizontal size for the control.