RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.TShiftState Type

TShiftState indicates the state of the Alt, Ctrl, and Shift keys and the mouse buttons.

Pascal
TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble);
C++
(ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble) TShiftState;

Classes

The TShiftState type is used by key-event and mouse-event handlers to determine the state of the Alt, Ctrl, and Shift keys and the state of the mouse buttons when the event occurs. It is a set of flags that indicate the following:

Value 
Meaning 
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 middle mouse button is held down.  
ssDouble  
The mouse was double-clicked.  

 

TControl 

TControl 

TControl 

OnKeyDown 

OnKeyUp

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!