Sign in Join
FPDoc Onlineexperiment

TCustomListView.DoAutoAdjustLayout procedure

Member of TCustomListViewprotectedIn unit ComCtrls

Adjusts the layout for the list view using the specified arguments.

Declaration

pascal
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy; 
 const AXProportion: Double; 
 const AYProportion: Double); override

Arguments

AMode

Layout adjustment policy used in the method.

AXProportion

Factor used to adjust widths.

AYProportion

Factor used to adjust heights.

Description

DoAutoAdjustLayout is an overridden procedure used to adjust the layout for the list view using the specified arguments. DoAutoAdjustLayout calls the inherited method.

DoAutoAdjustLayout extends the ancestor method to include support for sizing the columns in the list view using the proportions specified in AXProportion and AYProportion for the display density (DPI). DoAutoAdjustLayout also ensures that the widgetset class is initialized for each of the image list sizes represented by the TListViewImageList enumeration.

No actions are performed in the method if AMode does not include one of the following values: lapAutoAdjustWithoutHorizontalScrolling or lapAutoAdjustForDPI.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.