Sign in Join
FPDoc Onlineexperiment

TResourceDesc class

In unit resource

A resource description (type or name)

Declaration

pascal
TResourceDesc = class

Description

This class represent a resource description (type or name).

Resources are identified by a type, name and (optionally) a language ID.

Type and name can be either a name (a string identifier) or an ID (an integer identifier in the range 0..65535).

Unfortunately, name is used both to refer to a the name of the resource and both to the format of a resource description

Example:

Typically, a Windows executable has a main icon, which is a resource of type RT_GROUP_ICON (type is an ID) and name MAINICON (name is a name).

See also

Properties

NamepublicThe value of the resource description as a name
IDpublicThe value of the resource description as an ID
DescTypepublicThe type of the resource description

Methods

SetOwnerprotectedProtected method to let a resource set itself as owner of the TResourceDesc
CreatepublicCreates a new TResourceDesc object
AssignpublicAssigns the contents of another TResourceDesc object to this one
EqualspublicCompares the contents of another TResourceDesc object to this one

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