By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

Magic Library Docking problem

P: n/a
ka
I'm using Corwnwood.Magic library for docking in my application. My
application to let the users to create their screen look to show some
particular data.

I treid to dock my things in the way,
Left Side: ToolBox
Middle: WorkPanel
Right: Package Explorer + PropertyWindow

WorkToolBox, Package Explore, PrepertyWindow : derived from Content
WorkPanel : derived from Panel

Below is the code I used, but the WorkPanel is filling the whole main
window, even the area "covered by" toolbox and package explorer. How can i
dock in my expected way ?
_dockManager = new DockingManager(applicationHostService.MainForm,
VisualStyle.IDE);

//create the UI's for the design studio
_workToolBox = new WorkToolBox(_dockManager);
_workPanel = new WorkPanel();
_packageExplorer = new PackageExplorer(_dockManager);
_propertyWindow = new PropertyWindow(_dockManager);

//put in the work panel
applicationHostService.MainForm.Controls.Add(_work Panel);

//add the dockable contents
_dockManager.Contents.Add(_workToolBox);
_dockManager.Contents.Add(_packageExplorer);
_dockManager.Contents.Add(_propertyWindow);

//dock the toolbox
_dockManager.AddContentWithState(_workToolBox, State.DockLeft);

//dock the package explorer
WindowContent wc = _dockManager.AddContentWithState(_packageExplorer,
State.DockRight);

//dock the property window in the same window as the package explorer
_dockManager.AddContentToZone(_propertyWindow, wc.ParentZone, 1);

//docking contents cannot dock inside work panel
_dockManager.InnerControl = _workPanel;

//docking cannot be in work panel
_dockManager.InnerControl = _workPanel;

//load up the studio menu
XmlMenu menu = xmlGuiService.GetXmlMenu("StudioMenu");

//install studio menu
applicationHostService.InstallApplicationMenu(menu );

Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.