IWorkspaceBox.Source

Syntax

Source: IWorkspaceSource;

Description

The Source property determines a data source for the component.

Comments

As the property value, specify a UiWorkspace or UiWorkspaceObject component, cast to the IWorkspaceSource interface.

Example

Executing this example requires a form with the Button1 button, the WorkspaceBox component named WorkspaceBox1 and the UiWorkspaceObject component named UiWorkspaceObject2.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    WorkspaceBox1.Source := UiWorkspaceObject2 As IWorkspaceSource;
    UiWorkspaceObject2.Active := True;
End Sub Button1OnClick;

On pressing the button the UiWorkspaceObject2 component is set as a data source for the WorkspaceBox1 component.

See also:

IWorkspaceBox