Key

Key (gb.qt4)

This class is used for getting information about a key event, and contains the constants that represent the keys.
The key event information is only available during a keyboard event handler.
NEVER use the key values directly, as they change between GUI components. Always use these constants! 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 with GTK+. NEVER use numeric values or the Asc function to test an alphabetic key, use the Key array accessor.
This class is static. This class acts like a read-only static array.
Constants
Clear
Since 3.21
Del A synoymous for the Key.Delete constant.
End
Esc
F1
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F2
F20
F21
F22
F23
F24
F3
F4
F5
F6
F7
F8
F9
Ins A synonymous for the Key.Insert constant.
PgDown A synonymous for the Key.PageDown constant.
PgUp A synonymous for the Key.PageUp constant.
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.
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.
Static methods
Send
Since 3.22
Send a keyboard press event and keyboard release event to the current focused control corresponding to the specified Shortcut.

AltStyle によって変換されたページ (->オリジナル) /