Sign in Join
FPDoc Onlineexperiment

TAcceleratorsResource class

In unit acceleratorsresource

Accelerator table resource type

Declaration

pascal
TAcceleratorsResource = class(TAbstractResource)

Inheritance

  1. TAcceleratorsResource
  2. TAbstractResource

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.

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

Properties

CountpublicThe number of accelerators in the table
ItemspublicIndexed array of accelerators in the table

Methods

GetTypeprotectedReturns the type of the resource
GetNameprotectedReturns the name of the resource
ChangeDescTypeAllowedprotectedReports whether changing the type of resource type or name is allowed
ChangeDescValueAllowedprotectedReports whether changing the value of resource type or name is allowed
NotifyResourcesLoadedprotectedTells the resource that all resources have been loaded
CreatepublicCreates a new accelerator table resource
DestroypublicDestroys the object
UpdateRawDatapublicUpdates RawData stream.
AddpublicAdds a new accelerator to the table
ClearpublicEmpties the accelerator table
DeletepublicDeletes an accelerator from the table

Inherited

From TAbstractResource (20)

_Type CacheData Characteristics CodePage CompareContents DataOffset DataSize DataVersion HeaderSize LangID MemoryFlags Name Owner OwnerList RawData SetChildOwner SetCustomRawDataStream SetDescOwner SetOwnerList Version

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.