Declaration¶
Source position: resource.pp line 107
type
TResourceDesc = class
protected
procedure SetOwner;
public
constructor Create; overload;
constructor Create(const aID: TResID); overload;
constructor Create(const aName: TResName); overload;
procedure Assign;
function Equals : Boolean;
property Name: TResName; {rw}
property ID: TResID; {rw}
property DescType: TDescType; {r}
end;
Inheritance¶
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).
Remark:
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).
Properties¶
| Member | Visibility | Description |
|---|---|---|
| DescType read only | public | The type of the resource description |
| ID | public | The value of the resource description as an ID |
| Name | public | The value of the resource description as a name |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Assign | public | Assigns the contents of another TResourceDesc object to this one |
| Create | public | Creates a new TResourceDesc object |
| Equals | public | Compares the contents of another TResourceDesc object to this one |
| SetOwner | protected | Protected method to let a resource set itself as owner of the TResourceDesc |
See also¶
| Name | Description |
|---|---|
| TAbstractResource | Base abstract resource class |