Sign in Join
FPDoc Onlineexperiment

TResourceTreeNode.Add procedure

Member of TResourceTreeNodepublicIn unit resourcetree

Adds a new resource to the tree

Declaration

pascal
procedure Add(aResource: TAbstractResource); virtual; abstract

Arguments

aResource

The resource to add

Description

This method adds a new resource to the tree, creating all needed sub nodes

This method should only be called on root nodes (instances of TRootResTreeNode).

Errors

If a resource with the same type, name and language ID already exists, an EResourceDuplicateException exception is raised.

See also

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