resource unit
Contains base classes for resource handling
This unit contains base classes needed to work with resources.
Single resources are represented by an instance of a TAbstractResource descendant. They are grouped in a TResources instance which can be read (written) to (from) a stream via a TAbstractResourceReader (TAbstractResourceWriter) descendant.
TGenericResource provides a basic implementation of TAbstractResource.
Classes and records
ENoMoreFreeIDsException | class | There are no more free IDs to use as name for a resource |
EResourceDescChangeNotAllowedException | class | Description is not allowed to change |
EResourceDescTypeException | class | Wrong description type error |
EResourceDuplicateException | class | There is already a resource with same type, name and language ID |
EResourceException | class | Base class for resource-related exceptions |
EResourceLangIDChangeNotAllowedException | class | Language ID is not allowed to change |
EResourceNotFoundException | class | No resource matching the search criteria is found |
EResourceReaderException | class | Base class for resource reader-related exceptions |
EResourceReaderNotFoundException | class | No suitable resource reader was found |
EResourceReaderUnexpectedEndOfStreamException | class | The stream ended prematurely |
EResourceReaderWrongFormatException | class | The stream is not in the format the reader supports |
EResourceWriterException | class | Base class for resource writer-related exceptions |
EResourceWriterNotFoundException | class | No suitable resource writer was found |
TAbstractResource | class | Base abstract resource class |
TAbstractResourceReader | class | Base abstract resource reader class |
TAbstractResourceWriter | class | Base abstract resource writer class |
TGenericResource | class | Generic resource class |
TResourceDesc | class | A resource description (type or name) |
TResources | class | A collection of resources |
Types
TDescType | enumeration | The type of a resource type or name |
TLangID | type | A resource language ID |
TResID | type | A resource type or name in ID form |
TResName | type | A resource type or name in string form |
TResourceClass | type | Resource metaclass |
TResourceReaderClass | type | Resource reader metaclass |
TResourceWriterClass | type | Resource writer metaclass |
Constants
CREATEPROCESS_MANIFEST_RESOURCE_ID | constant | |
ISOLATIONAWARE_MANIFEST_RESOURCE_ID | constant | |
ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID | constant | |
MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID | constant | |
MF_DISCARDABLE | constant | The resource can be discarded if no longer needed |
MF_MOVEABLE | constant | The resource can be moved |
MF_PRELOAD | constant | The resource is loaded with the executable file |
MF_PURE | constant | The resource contains dword-aligned data |
MINIMUM_RESERVED_MANIFEST_RESOURCE_ID | constant | |
RT_ACCELERATOR | constant | Accelerator table resource |
RT_ANICURSOR | constant | Animated cursor resource |
RT_ANIICON | constant | Animated icon resource |
RT_BITMAP | constant | Bitmap resource |
RT_CURSOR | constant | Single cursor resource |
RT_DIALOG | constant | Dialog resource |
RT_DLGINCLUDE | constant | Never present in compiled form |
RT_DLGINIT | constant | |
RT_FONT | constant | Single font resource |
RT_FONTDIR | constant | Font directory resource |
RT_GROUP_CURSOR | constant | Cursor resource |
RT_GROUP_ICON | constant | Icon resource |
RT_HTML | constant | HTML resource |
RT_ICON | constant | Single icon resource |
RT_MANIFEST | constant | Windows XP Side-by-Side Assembly XML manifest |
RT_MENU | constant | Menu resource |
RT_MESSAGETABLE | constant | Message table resource |
RT_PLUGPLAY | constant | Plug and Play resource |
RT_RCDATA | constant | Application-defined resource (raw data) |
RT_STRING | constant | String table resource |
RT_VERSION | constant | Version resource |
RT_VXD | constant | VXD resource |
Resource strings
SDescChangeNotAllowed | resource string | |
SLangIDChangeNotAllowed | resource string | |
SReaderNotFoundExt | resource string | |
SReaderNotFoundProbe | resource string | |
SResDuplicate | resource string | |
SResourceNotFound | resource string | |
SResourceNotFoundLang | resource string | |
SWriterNotFoundExt | resource string |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
