Sign in Join
FPDoc Onlineexperiment

TValueListEditor.ShowColumnTitles procedure

Member of TValueListEditorprotectedIn unit ValEdit

Assigns and displays the column titles for the Key and Value columns.

Declaration

pascal
procedure ShowColumnTitles

Description

ShowColumnTitles is a procedure used to assign and display the column titles for the Key and Value columns in the control. ShowColumnTitles requires column titles to be enabled by including the value doColumnTitles in the DisplayOptions property. No actions are performed in the method if column titles have not been enabled.

The text used in column titles is derived from resource strings, or values in the TitleCaptions property (when assigned). The default column titles are:

rsVLEKey
Resource string with the caption for the Key column
rsVLEValue
Resource string with the caption for the Value column

Values in TitleCaptions are used when the property contains a values at the following ordinal positions:

0
Value used as the caption for the Key column
1
Value used as the caption for the Value column

ShowColumnTitles stores the column titles to the first row in the grid control using the Cells property.

ShowColumnTitles is called automatically when the control is created, and when values in DisplayOptions or TitleCaptions are changed.

See also

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