Source: IWorkspaceSource;
The Source property determines a component data source.
As the property value, specify the UiWorkspace or UiWorkspaceObject component that is cast to the IWorkspaceSource interface.
Executing the 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 clicking the button the UiWorkspaceObject2 component is set as a data source for the WorkspaceBox1 component.
See also: