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
Aquesta classe és estàtica.
This class acts like a
només lectura static array.
Constants
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.
|