Table of Contents

TTMSFNCTouchKeyboard Class

TMS FNC Touch Keyboard control: an on-screen keyboard with configurable layout, key styles, bitmaps, and automatic posting to the focused input control.

API unit family: TMSFNCTouchKeyboard Inherits from: TTMSFNCCustomTouchKeyboard

Syntax

TTMSFNCTouchKeyboard = class(TTMSFNCCustomTouchKeyboard)

Properties

Name Description
AllowAutoZoom When True, the keyboard automatically scales itself to fit its parent container. (inherited from TTMSFNCCustomTouchKeyboard)
AutoCapsDisplay When True, the Caps Lock key is visually highlighted while it is active. (inherited from TTMSFNCCustomTouchKeyboard)
AutoPostKey When True, key presses are automatically posted to the focused control. (inherited from TTMSFNCCustomTouchKeyboard)
BitmapContainer Bitmap container used to resolve named bitmaps for key images. (inherited from TTMSFNCCustomTouchKeyboard)
BorderRounding Corner radius of individual key borders in pixels. (inherited from TTMSFNCCustomTouchKeyboard)
Font Default font applied to key captions across the keyboard. (inherited from TTMSFNCCustomTouchKeyboard)
HighlightAltGr Highlight color applied to the AltGr key when it is active. (inherited from TTMSFNCCustomTouchKeyboard)
HighlightCaps Highlight color applied to the Caps Lock key when it is active. (inherited from TTMSFNCCustomTouchKeyboard)
KeySpacing Pixel spacing between adjacent keys. (inherited from TTMSFNCCustomTouchKeyboard)
KeyboardType Keyboard layout applied to the keys collection. (inherited from TTMSFNCCustomTouchKeyboard)
Keys Collection of key items defining each key's position, caption, and key value. (inherited from TTMSFNCCustomTouchKeyboard)
PictureDownState Default bitmap shown on all keys in their pressed state (overridden per key). (inherited from TTMSFNCCustomTouchKeyboard)
PictureNormalState Default bitmap shown on all keys in their normal state (overridden per key). (inherited from TTMSFNCCustomTouchKeyboard)
PostWMCharOnly When True, key events are posted as WM_CHAR messages only, bypassing the normal key-down/key-up sequence. (inherited from TTMSFNCCustomTouchKeyboard)
SmallFont Small font used for Shift/AltGr secondary captions in the key corners. (inherited from TTMSFNCCustomTouchKeyboard)

Methods

Name Description
AutoZoom Scales the keyboard control to fit its parent bounds, adjusting all key sizes proportionally. (inherited from TTMSFNCCustomTouchKeyboard)
LoadKeybdLayout Loads a keyboard layout from a file and optionally resizes the keys or the keyboard control. (inherited from TTMSFNCCustomTouchKeyboard)
PostKey Posts a synthetic key event to the currently focused control or window. (inherited from TTMSFNCCustomTouchKeyboard)
SaveKeybdLayout Saves the current keyboard layout (key positions and sizes) to a file. (inherited from TTMSFNCCustomTouchKeyboard)
Zoom Scales the keyboard or its keys by the given horizontal and vertical factors. (inherited from TTMSFNCCustomTouchKeyboard)

Events

Name Description
OnDrawKey Fires before a key is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomTouchKeyboard)
OnKeyClick Fires when the user clicks a key. (inherited from TTMSFNCCustomTouchKeyboard)
OnKeyDown Fires when a key is pressed. (inherited from TTMSFNCCustomTouchKeyboard)

Used by