TValueListEditor.ResetDefaultColWidths procedure
Resets grid columns to their default widths.
Declaration
procedure ResetDefaultColWidths; overrideDescription
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
