Key (gb.qt4)

This class is used for getting information about a key event, and contains the constants that represent the keys.

NEVER use the key values directly, as they change between GUI components. Always use these constants!

NEVER use numeric values or the Asc function to test an alphabetic key, use the Key array accessor.

The Integer values shown for constants below are the values the QT toolkit provides.
They will be different for GTK
For example.

Const ControlKey As Integer = 16777249 (with QT)
but...
Const ControlKey As Integer = 65507 when using GTK

Tato třída je statická.

This class acts like a pouze číst static array.

Konstanty
AltGrKey   Const AltGrKey As Integer = 16781571
AltKey   Const AltKey As Integer = 16777251
BackTab  
Backspace  
CapsLock  
ControlKey   Const ControlKey As Integer = 16777249
Del   A synoymous for the Key.Delete constant.
Delete  
Down  
End  
Enter  
Esc  
Escape  
F1  
F10  
F11  
F12  
F13  
F14  
F15  
F16  
F17  
F18  
F19  
F2  
F20  
F21  
F22  
F23  
F24  
F3  
F4  
F5  
F6  
F7  
F8  
F9  
Help  
Home  
Ins   A synonymous for the Key.Insert constant.
Insert  
Left  
Menu  
MetaKey   Const MetaKey As Integer = 16777250
NumLock  
PageDown  
PageUp  
Pause  
PgDown   A synonymous for the Key.PageDown constant.
PgUp   A synonymous for the Key.PageUp constant.
Print  
Return  
Right  
ScrollLock  
ShiftKey   Const ShiftKey As Integer = 16777248
Space  
SysReq  
Tab  
Up  

Static properties
Alt   Returns if the ALT key is pressed.
Code   Returns the code of the key.
Control   Returns if the CONTROL key is pressed.
Meta   Returns if the META key was pressed.
Normal   Indicates that no special key was pressed. This is inside ..._KeyPress or ..._KeyRelease Events.
Shift   Returns if the SHIFT key is pressed.
Shortcut   Return a string representation of a key with all modifiers.
State   Returns the state of the special keys.
Text   Returns the text associated with the key.