Programmatically hosting workspaces

Topics: CAB & Smart Client Software Factory
Sep 14, 2006 at 6:18 AM
originally posted by: crickard62

Can anyone explain how to host/add a TabWorkspace inside a DeckWorkSpace at runtime?
Sep 14, 2006 at 9:33 AM
originally posted by: PJackson

Put a TabWorkspace on a View; add the View to a WorkItem and Show() it in the DeckWorkspace.

The TabWorkspace should now show up in the WorkItem's (and descendent's) Workspaces collection and other Views can be added to it.
Oct 3, 2006 at 11:18 PM
originally posted by: RohanSuperS

I have a tab workspace, to which I programatically add more views, which in turn contain a tab workspace.

Let's call the original tab workspace TWSOriginal, the new view containing the 2nd tab workspace is called ViewChild and the new tab controls we call TWSChild.

Now, when I try to add multiple copies of ViewChild to TWSOriginal, I get an error that workspace TWSChild already exist.

I try to give the new TWSChild a new name on creation, but get errors " Control 'SourceControlEntityWorkspace' accessed from a thread other than the thread it was created on".

Any ideas?
Oct 4, 2006 at 12:25 AM
originally posted by: RohanSuperS

Ahh, create the control, and rename it straight away to something unique.