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

IsAccel

Searches for the given virtual key, used as an accelerator.

Declaration

Source position: forms.pp line 1810

function IsAccel(

  VK: Word;

  const Str: string

):Boolean;

Arguments

VK

  

The virtual key (uppercase ASCII) to find.

Str

  

The string to scan.

Function result

True when the key is used as an accelerator.

Description

An accelerator consists of an ampersand followed by the accelerator key. Duplicate ampersands are ignored, they denote an literal (displayed) ampersand.

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