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

TValueListEditor.ResetDefaultColWidths

Resets grid columns to their default widths.

Declaration

Source position: valedit.pas line 168

protected procedure TValueListEditor.ResetDefaultColWidths; override;

Description

ResetDefaultColWidths is a procedure used to reset grid columns to their default widths. ResetDefaultColWidths uses values in the AutoFillColumns and DisplayOptions properties to determine the actions needed in the method. When AutoFillColumns is False, the inherited ResetDefaultColWidths method is called to set the default column widths.

Otherwise, DisplayOptions is used to determine if the Key column is displayed as a fixed column. When DisplayOptions contains the value doKeyColFixed, the Key column (column 0) is resized to fit the longest value in the Keys property and the control is redrawn.

No actions are performed in the method when AutoFillColumns is True and DisplayOptions does not include the value doKeyColFixed.

See also

TValueListEditor.DisplayOptions

  

Enables or disables display features and behaviors in the control.

TCustomDrawGrid.AutoFillColumns

  

Indicates whether columns are automatically resized to fill the visible area in the grid.


Version 4.0 Generated 2025-05-03 Home