[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

ShiftStateToKeys

Converts a shift state into a key state value compatible with the key state of a Windows API LParam

Declaration

Source position: forms.pp line 1779

function ShiftStateToKeys(

  ShiftState: TShiftState

):PtrUInt;

Description

The Keys value is of the type PtrUInt and is a or'ed combination of the following constants: MK_Shift, MK_Control, MK_LButton, MK_RButton, MK_MButton, MK_XBUTTON1 and MK_XBUTTON2

See also

#RTL.Classes.TShiftState

KeysToShiftState

  

Converts modifier keys from the LParam of a mouse message to a TShiftState.

KeyDataToShiftState

  

Converts modifier keys from the LParam of a keyboard message (WM_KEYUP for example) to a TShiftState

#LCL.LCLType.MK_Shift

  

A key state constant to represent the shift key, equivalent to ssShift from TShiftState

#LCL.LCLType.MK_Control

  

A key state constant to represent the control key, equivalent to ssCtrl from TShiftState

#LCL.LCLType.MK_LButton

  

A key state constant to represent the left mouse button, equivalent to ssLeft from TShiftState

#LCL.LCLType.MK_RButton

  

A key state constant to represent the right mouse button, equivalent to ssRight from TShiftState

#LCL.LCLType.MK_MButton

  

A key state constant to represent the middle mouse button, equivalent to ssMiddle from TShiftState

#LCL.LCLType.MK_XBUTTON1

  

A key state constant to represent the first extra mouse button, equivalent to ssExtra1 from TShiftState

#LCL.LCLType.MK_XBUTTON2

  

A key state constant to represent the second extra mouse button, equivalent to ssExtra2 from TShiftState

The latest version of this document can be found at lazarus-ccr.sourceforge.net.