Skip to main content

TCustomdxPSExplorer.CreateTree(IdxPSExplorerTreeContainerHost) Method

Creates the report tree container.

Declaration

function CreateTree(const AHost: IdxPSExplorerTreeContainerHost): TCustomdxPSExplorerTreeContainer;

Parameters

Name Type
AHost IdxPSExplorerTreeContainerHost

Returns

Type
TCustomdxPSExplorerTreeContainer

Remarks

The CreateTree method is used internally to create the report tree container object. The AHost parameter specifies the container host object. The object must implement the IdxPSExplorerTreeContainerHost interface, which declares methods controlling the tree container’s appearance, position and updating.

The CreateTree method returns the tree container object, which can then be passed to the BuildTree method to build the report tree. Note that the returned object provides the TreeView property, this property can be used to access settings of the internal tree view control that displays the report tree.

Note that you will not need to use the CreateTree method if the default functionality provided by the explorer components suits your needs. You can make use of it when you need to display the report tree on the form rather than within the preview window, for instance. Refer to the DBBasedExplorer demo for an example of implementing this.

See Also