TStringTableResource class
String table resource type
Declaration
TStringTableResource = class(TAbstractResource)Inheritance
- TStringTableResource
- TAbstractResource
Description
This class represents a resource of type RT_STRING.
A string table is a resource containing strings, identified by an integer id in the range 0-65535. A string table contains exactly 16 strings, and its name is an ID in the range 1-4096, determined by the highest 12 bits of the strings ID it contains, plus one. That is, a string table with 1 as name holds strings with IDs from 0 to 15, string table 2 contains strings with IDs from 16 to 31 and so on. There is no difference between an empty string and a non-existant string.
For these reasons, it is not possible to set the name of a string table: it is autogenerated from the value of FirstID property. Moreover, Count property is always 16.
Strings property is provided to access and modify individual strings.
Properties
FirstID | public | The ID of first the string contained in the string table |
LastID | public | The ID of the last string contained in the string table |
Count | public | The number of strings contained in the string table |
Strings | public | Indexed array of strings in the string table |
Methods
GetType | protected | Returns the type of the resource |
GetName | protected | Returns the name of the resource |
ChangeDescTypeAllowed | protected | Reports whether changing the type of resource type or name is allowed |
ChangeDescValueAllowed | protected | Reports whether changing the value of resource type or name is allowed |
NotifyResourcesLoaded | protected | Tells the resource that all resources have been loaded |
Create | public | Creates a new string table resource |
Destroy | public | Destroys the object |
UpdateRawData | public | Updates RawData stream. |
Inherited
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
