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

TResourceFactory.RegisterResourceClass

Registers a resource class

Declaration

Source position: resfactory.pp line 43

public class procedure TResourceFactory.RegisterResourceClass(

  aType: TResID;

  aClass: TResourceClass

); overload;

class procedure TResourceFactory.RegisterResourceClass(

  aType: TResName;

  aClass: TResourceClass

); overload;

class procedure TResourceFactory.RegisterResourceClass(

  aType: TResourceDesc;

  aClass: TResourceClass

); overload;

Arguments

aType

  

The type associated to the resource class

aClass

  

The resource class to register

Arguments

aType

  

The type associated to the resource class

aClass

  

The resource class to register

Arguments

aType

  

The type associated to the resource class

aClass

  

The resource class to register

Description

This class method registers a resource class for the given resource type.

Errors

If a class has already been registered for the given resource type, an EResourceClassAlreadyRegisteredException exception is raised.

See also

TResourceFactory

  

Factory class for resources


Documentation generated on: May 14 2021