TClrCustomControl.IsKeyLocked(TKeys_Set) Method

Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect.

Namespace: CNClrLib.Control.Base
public
 class function IsKeyLocked(keyVal: TKeys_Set): Boolean; static;

Parameters

keyVal
Type: System.Void

The CAPS LOCK, NUM LOCK, or SCROLL LOCK member of the Keys enumeration.

Return Value

Type: Boolean

true if the specified key or keys are in effect; otherwise, false.

Use the IsKeyLocked property to determine whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK keys are on, whether individually or in combination.