[Overview][Constants][Types][Classes][Index] Reference for unit 'acceleratorsresource' (#fcl-res)

TAcceleratorsResource

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Accelerator table resource type

Declaration

Source position: acceleratorsresource.pp line 45

type TAcceleratorsResource = class(TAbstractResource)

protected

  function GetType; override;

  function GetName; override;

  function ChangeDescTypeAllowed(); override;

  function ChangeDescValueAllowed(); override;

  procedure NotifyResourcesLoaded; override;

public

  constructor Create();

  

Creates a new accelerator table resource

  destructor Destroy; override;

  procedure UpdateRawData; override;

  procedure Add();

  

Adds a new accelerator to the table

  procedure Clear;

  

Empties the accelerator table

  procedure Delete();

  

Deletes an accelerator from the table

  property Count: Integer; [r]

  

The number of accelerators in the table

  property Items []: TAccelerator; default; [rw]

  

Indexed array of accelerators in the table

end;

Inheritance

TAcceleratorsResource

  

Accelerator table resource type

|

TAbstractResource

  

Base abstract resource class

|

TObject

Description

This class represents a resource of type RT_ACCELERATOR.

An accelerator table resource is a collection of accelerators (represented by TAccelerator 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.

Remark: This class doesn't allow its type to be changed to anything else than RT_ACCELERATOR. Attempts to do so result in a EResourceDescChangeNotAllowedException.

Documentation generated on: Sep 28 2017