Unit 'Forms' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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 1942

function ShiftStateToKeys(

  ShiftState: TShiftState

):PtrUInt;

Arguments

ShiftState

  

Set type with the TShiftStateEnum values examined in the routine.

Function result

PtrUInt type with the address for the value representing the specified ShiftState enumeration values.

Description

The return value is a PtrUInt type and contains an OR'ed combination of the following constants:

See also

TShiftState

KeysToShiftState

  

Converts modifier keys in the LParam for a mouse message to a TShiftState value.

KeyDataToShiftState

  

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

MK_SHIFT

  

MK_CONTROL

  

MK_LBUTTON

  

MK_RBUTTON

  

MK_MBUTTON

  

MK_XBUTTON1

  

MK_XBUTTON2

  



CT Web help

CodeTyphon Studio