Sign in Join
FPDoc Onlineexperiment

TCustomShellTreeView.CreateNode function

Member of TCustomShellTreeViewprotectedIn unit ShellCtrls

Creates a new tree node for the shell control.

Declaration

pascal
function CreateNode: TTreeNode; override

Description

CreateNode is an overridden method used to create an new TTreeNode instance for the shell control. CreateNode calls the inherited method to create the class instance used as the return value for the method.

CreateNode ensures that the tree node is a TShellTreeNode class instance; the class type can be overridden in the OnCreateNodeClass event handler. If the new tree node is not derived from TShellTreeNode, an EShellCtrl exception is raised to indicate the invalid node type.

Errors

Raises an EShellCtrl exception if the new tree node is not derived from TShellTreeNode.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.