Contains an accelerator table resource type

This unit contains , a TAbstractResource descendant specialized in handling resource of type RT_ACCELERATOR.

Adding this unit to a program's uses clause registers class for type RT_ACCELERATOR with TResourceFactory.

The accelerator key is a virtual key code

When this flag is set, the accelerator key is a virtual key code. Otherwise, it is a ASCII character

Obsolete

This flag is obsolete and is provided only for compatibility with 16 bit Windows.

The accelerator is activated only if SHIFT key is pressed

This flag is valid only if the key is a virtual key.

The accelerator is activated only if CTRL key is pressed

This flag is valid only if the key is a virtual key.

The accelerator is activated only if ALT key is pressed

This flag is valid only if the key is a virtual key.

A single accelerator entry

A single accelerator entry in the accelerator table resource.

The key associated with the accelerator is represented by Ansi field: it can be a character or a virtual-key code (in the latter case, flag must be active).

The accelerator is identified by the value of id field.

Flags is a combination of the following values:

A set of flags that can be combined to specify an accelerator's characteristics. An ANSI character value or a virtual-key code An integer value that identifies the accelerator Used to keep record size aligned on a DWORD boundary A pointer to a TAccelerator record Accelerator table resource type

This class represents a resource of type RT_ACCELERATOR.

An accelerator table resource is a collection of accelerators (represented by records).

An accelerator represents a keystroke that can be associated with some action.

This resource type is very Microsoft Windows-specific, so it might not be of interest for many users.

Methods are provided to add, delete and modify single accelerators.

This class doesn't allow its type to be changed to anything else than RT_ACCELERATOR. Attempts to do so result in a EResourceDescChangeNotAllowedException.
Creates a new accelerator table resource

Please note that aType parameter is not used, since this class always uses RT_ACCELERATOR as type.

Ignored. Can be nil. The name of the resource Adds a new accelerator to the table The accelerator to add Empties the accelerator table Deletes an accelerator from the table The index of the accelerator to delete The number of accelerators in the table Indexed array of accelerators in the table

This property can be used to access all accelerators in the object.

This array is 0-based: valid elements range from 0 to Count-1. If you need to access RawData after you added, deleted or modified accelerators, be sure to call UpdateRawData first. This isn't needed however when resource is written to a stream, since TResources takes care of it.
The index of the accelerator to access