System.Classes.TShiftState

From RAD Studio API Documentation
Jump to: navigation, search

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

ssShift

The SHIFT key is held down.

ssAlt

The ALT key is held down.

ssCtrl

The CTRL key is held down.

ssLeft

The left mouse button is held down.

ssRight

The right mouse button is held down.

ssMiddle

The wheel mouse button is held down.

ssDouble

The mouse button was double-clicked.

ssTouch

The user is holding a finger on the touch surface.

ssPen

The pen is touching the surface of a tablet.

ssCommand

The CMD key is held down (only on Mac).

ssHorizontal

The user is moving a finger horizontally on the touch surface or is rolling the mouse wheel to produce a horizontal displacement.

See Also