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

TCustomMaskEdit.KeyPress

Performs actions needed to handle the specified character in the control.

Declaration

Source position: maskedit.pp line 298

protected procedure TCustomMaskEdit.KeyPress(

  var Key: Char

); override;

Arguments

Key

  

Character handled in the method.

Description

KeyPress is an overridden procedure used to apply the character specified in Key to the control. KeyPress calls the inherited method, and converts the character in Key to a UTF-8-encoded character which is passed to the HandleKeyPress method. All character values handled in HandleKeyPress are set to an empty character, and causes the value in Key to be digested in the method.

See also

TCustomMaskEdit.UTF8KeyPress

  

Handles a key press with the specified UTF-8 character value.

TWinControl.KeyPress

  

Signals the OnKeyPress event handler (when assigned).


Version 4.0 Generated 2025-05-03 Home