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

TValueListEditor.KeyPress

Handles special key presses for the control.

Declaration

Source position: valedit.pas line 166

protected procedure TValueListEditor.KeyPress(

  var Key: Char

); override;

Arguments

Key

  

Key value examined in the method.

Description

KeyPress is an overridden method in TValueListEditor which handles key press events for special characters used in the control.

It calls the inherited method on entry to handle the character value in Key. If not handled in the ancestor class, it prevents the name/value separator used in Strings from being entered in the Name column for the control. If detected, Key is set to #0 and the focus is changed to the Value column and its editor is activated.

See also

TValueListEditor.Strings

  

Stores the keys, values, and item definitions in the control.

TValueListEditor.Keys

  

Provides indexed access to Key names in the control.

TValueListEditor.Values

  

Provides indexed access to Values stored in the control.


Version 4.0 Generated 2025-05-03 Home