TShiftState in DelphiVCL indicates the state of the modifier keys – shift/ctrl/alt, the mouse buttons, or touch devices when you are performing Windows app development.
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. |
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.