[Overview][Resource strings][Constants][Types][Classes][Index] Reference for unit 'resource' (#fcl-res)

TResourceDesc

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

A resource description (type or name)

Declaration

Source position: resource.pp line 99

type TResourceDesc = class end;

protected

  procedure SetOwner();

  

Protected method to let a resource set itself as owner of the TResourceDesc

public

  constructor Create();

  

Creates a new TResourceDesc object

  procedure Assign();

  

Assigns the contents of another TResourceDesc object to this one

  function Equals();

  

Compares the contents of another TResourceDesc object to this one

  property Name: TResName; [rw]

  

The value of the resource description as a name

  property ID: TResID; [rw]

  

The value of the resource description as an ID

  property DescType: TDescType; [r]

  

The type of the resource description

Inheritance

TResourceDesc

  

A resource description (type or name)

|

TObject

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).

See also

TAbstractResource

  

Base abstract resource class


Documentation generated on: Nov 16 2015