| [Overview][Constants][Types][Classes][Index] | 
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Accelerator table resource type
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  | 
  | 
The number of accelerators in the table  | 
|
property Items []: TAccelerator; default; [rw]  | 
  | 
Indexed array of accelerators in the table  | 
end;  | 
  | 
Accelerator table resource type  | 
|
| | | ||
  | 
Base abstract resource class  | 
|
| | | ||
TObject  | 
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. |