Table of Contents

TTMSFNCTouchKey Class

Visual representation of a single key on the touch keyboard control; handles its own click/press rendering and posts key events to the focused control.

API unit family: TMSFNCTouchKeyboard Inherits from: TTMSFNCCustomControl

Syntax

TTMSFNCTouchKey = class(TTMSFNCCustomControl)

Properties

Name Description
AltGrCaption Caption shown on the key when AltGr is active.
AltGrKeyValue Virtual key code posted when this key is pressed while AltGr is active.
AutoPost When True, pressing this key automatically posts the key event to the focused input control.
BorderColor Key border color in its normal state.
BorderColorDown Key border color in its pressed state.
Caption Default caption displayed on the key face.
Color Key background color in its normal state.
ColorDown Key background color in its pressed state.
Down When True, the key is in its pressed/down visual state.
ImageName Name of the bitmap in the bitmap container displayed on the key face.
KeyValue Virtual key code posted when this key is pressed in the normal state.
OldH Saved original height of the key before the last zoom operation.
OldW Saved original width of the key before the last zoom operation.
OldX Saved original left position of the key before the last zoom operation.
OldY Saved original top position of the key before the last zoom operation.
PictureDownState Bitmap displayed on the key in its pressed state; overrides the default colored background.
PictureNormalState Bitmap displayed on the key in its normal state; overrides the default colored background.
ShiftCaption Caption shown on the key when Shift is active.
ShiftKeyValue Virtual key code posted when this key is pressed while Shift is active.
ShortCut Keyboard shortcut string shown in small text in the corner of the key face.
SpecialKey Special function key assigned to this key; use skNone for regular character keys.
TextColor Caption text color in the normal state.
TextColorDown Caption text color in the pressed state.
TouchKeyItem The collection item that defines this key's values and appearance.

Events

Name Description
OnKeyDown Fires when this key is pressed.