System.Classes.TShiftState
Delphi
type TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble, ssTouch, ssPen, ssCommand, ssHorizontal);
C++
typedef System::Set<System_Classes__1, System_Classes__1::ssShift, System_Classes__1::ssHorizontal> TShiftState;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
set typedef |
public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
Indicates the state of the modifier keys, the mouse buttons, or the touch devices.
The TShiftState type is used by key-event and mouse-event handlers to determine the state of the modifier keys, the state of the mouse buttons or the state of an attached touch device, when the event occurs. It is a set of flags that indicates the following states:
Value | Description |
---|---|
|
The |
|
The |
|
The |
|
The left mouse button is held down. |
|
The right mouse button is held down. |
|
The wheel mouse button is held down. |
|
The mouse button was double-clicked. |
|
The user is holding a finger on the touch surface. |
|
The pen is touching the surface of a tablet. |
|
The |
|
The user is moving a finger horizontally on the touch surface or is rolling the mouse wheel to produce a horizontal displacement. |