473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Magic Library Docking problem

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
0 3104

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the...
3
by: Mad Joe | last post by:
Hi! I have a window form that contains 4 elements (2x2) on one panel. Those 4 elements are GroupBoxes of the exact same size, sorted like this: groupBox1 groupBox2 groupBox3 groupBox4 ...
0
by: simchajoy2000 | last post by:
I recently posted a question to this newsgroup asking how to create docking/floating windows for my user interface. And someone responded by sending me to this website ...
7
by: Chris Dunaway | last post by:
Where/How does VS determing docking order? I created a form with a panel docked to the top and a tab control with fill docking. I had added some tabs and place some controls, etc., and decided...
25
by: Dennis | last post by:
Has anyone really gotten the Docking and Splitter Bars to work for anyting but the simplest application for two controls and one splitter bar filling the whole form? If so, can you enlighten my on...
4
by: Enrique | last post by:
hi all, i'd like to know how i could do a docking menu and docking toolbar. i know it's not so easy y VS .NET 2002 and 2003. anything will help me: links, code, articles..... thanks a...
1
by: Joe | last post by:
I'm creating a C# application, and want to use docking windows. However, I want the docking windows to look like the docking windows withing VS2005, with a title bar, close button, etc... When...
2
by: Matt Brown - identify | last post by:
Hello, I've spent the better part of the day going over code and thinking and have come up with the following docking method that works perfectly. At this point, my brain is about to explode...
3
by: Samuel | last post by:
Hi, How can I determine the type of a file from "magic bytes", similar to what the "file" command on unix does? I found http://docs.python.org/lib/module-mimetypes.html but this only seems...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.