TTMSFNCTouchKeyboard
TTMSFNCTouchKeyboard
is a virtual keyboard for desktop applications on macOS and Windows, and WEB applications. It includes typical keyboards as QWERTY, QWERTZ, AZERTY, DVORAK, Cellphone and Numeric. The possibility exists to use the keyboard as a popup with the TTMSFNCPopupTouchKeyboard
non-visual component..
Customization
Keyboard layouts can be fully customized with TTMSFNCTouchKeyboard
. To allow this, the TTMSFNCTouchKeyboard
has a collection of TTMSFNCTouchKeyItem
objects that control position, appearance and behaviour of each key on the keyboard. A TTMSFNCTouchKeyItem
has following properties:
Property name |
Description |
AltGrCaption: string |
The key caption while pressing alt. |
AltGrKeyValue: string |
The key value while pressing alt. |
BorderColor : TTMSFNCGraphicsColor |
The border color in normal state. |
BorderColorDown : TTMSFNCGraphicsColor |
The border color when the key is being pressed. |
Caption: string |
The normal key state caption. |
Color: TTMSFNCGraphicsColor |
The color in normal state. |
ColorDown: TTMSFNCGraphicsColor |
The color when the key is being pressed. |
Hint: string |
The hint that’s shown when hovering over a key. |
ImageName: string |
The name of the image to use from the assigned bitmapcontainer. |
KeyValue: Integer |
The key value in normal state. |
PictureDownState: TTMSFNCBitmap |
The picture shown when the key is being pressed. |
PictureNormalState: TTMSFNCBitmap |
The picture in normal state. |
ShiftCaption: string |
The key caption while pressing shift. |
ShiftKeyValue: Integer |
The key value while pressing shift. |
ShortCut: string |
The keys’ shortcut. |
SpecialKey: TTMSFNCSpecialKey |
If this key is special, for example the ctrl key. |
TextColor: TTMSFNCGraphicsColor |
The text color. |
TextColorDown: TTMSFNCGraphicsColor |
The text color when the key is being pressed. |
X: Single |
The actual x position of the key on the keyboard. |
Y: Single |
The actual y position of the key on the keyboard. |
Save and load keyboard layouts
For desktop applications it's possible to save and load the keyboard layout by using the SaveKeybdLayout
and LoadKeybdLayout
methods.
Properties
Property name |
Description |
AllowAutoZoom: Boolean |
Allows the resizing of the keyboard. |
AutoCapsDisplay: Boolean |
If turned on, the keyboard will show key text in uppercase when caps is on. |
BorderRounding: Single |
Sets the value used to round the borders of the keys. |
HighlightAltGr: TTMSFNCGraphicsColor |
Sets the highlight color for the available alt keys. |
HighlightCaps: TTMSFNCGraphicsColor |
Sets the highlight color for the available capital keys. |
KeyboardType: TTMSFNCKeyboardType |
Selects one of the predefined keyboard types.S |
KeySpacing: Single |
Sets the spacing between the keys. |
Keys |
Collection of key items. |
Methods
Method name |
Description |
AutoZoom |
|
LoadKeybdLayout |
Loads the keyboard from the specified file name. |
SaveKeybdLayout |
Saves the keyboard to the specified file name. |
Zoom(AHorz, AVert: Double; AKeysOnly: Boolean = False; AAbsoluteZoom: Boolean = False) |
|
Events
Event name |
Description |
OnDrawKey |
Event triggered when a key on the keyboard is drawn. |
OnKeyClick |
Event triggered when a key on the keyboard is clicked. |
OnKeyDown |
Event triggered when a mouse is down on a key. |