Unit 'Forms' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

KeyDataToShiftState

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

Declaration

Source position: forms.pp line 1940

function KeyDataToShiftState(

  KeyData: PtrInt

):TShiftState;

Arguments

KeyData

  

PtrInt value with the address for the key data examined in the routine.

Function result

Set type with the TShiftStateEnum values representing the specified KeyData.

Description

Calls MsgKeyDataToShiftState in the lclintf.pas unit to get the TShiftState return value.

See also

KeysToShiftState

  

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

ShiftStateToKeys

  

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

MsgKeyDataToShiftState

  

MK_SHIFT

  

MK_CONTROL

  

MK_LBUTTON

  

MK_RBUTTON

  

MK_MBUTTON

  

MK_XBUTTON1

  

MK_XBUTTON2

  

TShiftState



CT Web help

CodeTyphon Studio