IWxMetabaseObject.ShowDependencies

Syntax

ShowDependencies(View: IWxView; [Recursive: Boolean = false]);

Parameters

View. The parameter determines the workspace, which displays selection points of objects' shapes, on which this object depends.

Recursive. The parameter determines whether the whole tree of objects is displayed, on which this object depends. The parameter is set to False by default, the workspace displays only objects of the first level of hierarchy.

Description

The ShowDependencies method displays the objects, on which this object depends, on the workspace.

Comments

The objects, on which this object depends, are displayed on the workspace, where the object itself is displayed. Selection points of objects' shapes are displayed on the workspace passed by the View parameter.

Example

Executing the example requires an object of the Workspace type. Create a form, add the Button1 button to it, the WorkspaceBox component named WorkspaceBox1, the UiWorkspaceObject component named UiWorkspaceObject1, specify the workspace as an object of the UiWorkspaceObject1 component, the UiWorkspaceObject1 component as a data source of the WorkspaceBox1 component and the True value of the Active property of the UiWorkspaceObject1 component. Add the CheckBox component named CheckBox1. Add links to the Collections, Metabase and Workspace system assemblies.

Class OBJ48413Form: Form
    UiWorkspaceObject1: UiWorkspaceObject;
    WorkspaceBox1: WorkspaceBox;
    Button1: Button;
    CheckBox1: CheckBox;

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Begin
        (WorkspaceBox1.View.Workspace.Shapes.Item(3).Extension As IWxMetabaseObject).ShowDependencies(WorkspaceBox1.View, CheckBox1.Checked);
    End Sub Button3OnClick;

End Class OBJ48413Form;

When the CheckBox1 checkbox is selected, on clicking the Button1 button the WorkspaceBox1 component area displays the whole tree of objects, on which the object with the 3 index depends; when the CheckBox1 checkbox is deselected, objects of the first level of hierarchy are displayed.

See also:

IWxMetabaseObject