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, a button named Button1 on the form, the WorkspaceBox component named WorkspaceBox1 and the UiWorkspaceObject component named UiWorkspaceObject2.
Add links to the Andy, ExtCtrls, Forms, Ui, and Workspace system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
WorkspaceBox1.Source := UiWorkspaceObject2 As IWorkspaceSource;
UiWorkspaceObject2.Active := True;
End Sub Button1OnClick;
Clicking the button sets the UiWorkspaceObject2 component as a data source for the WorkspaceBox1 component.
See also: