Sign in Join
FPDoc Onlineexperiment

TResourceTreeNode.CreateResource function

Member of TResourceTreeNodepublicIn unit resourcetree

Creates a new resource

Declaration

pascal
function CreateResource: TAbstractResource; virtual

Function result

The newly created resource

Description

This method creates a new resource.

A new resource is created and its type, name and language id are determined from the ancestor nodes in the tree hierarchy.

Usually CreateResource is called by resource readers that read files in which resources are stored as trees.

This method is meaningful only when called on leaf nodes (language id nodes).

See also

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