Forum  General Visual ...  Visual WebGui v...  How to use DockManager control ?
Previous Previous
 
Next Next
New Post 4/26/2012 7:07 PM
  guaike
91 posts
jintan.cnblogs.com
No Ranking


How to use DockManager control ? 

Hi,

I see the 6.4d version included DockManager control , can anyone tell me how to use it, or give me some code snippets.

 

Best regarts

Jim

 

 
New Post 5/4/2012 10:13 PM
  guaike
91 posts
jintan.cnblogs.com
No Ranking


Re: How to use DockManager control ? 

Please help me , thanks

 
New Post 5/8/2012 6:45 PM
  guaike
91 posts
jintan.cnblogs.com
No Ranking


Re: How to use DockManager control ? 

 anyone?

 
New Post 5/9/2012 1:41 AM
  JamesC
861 posts
www.redcastle.co.uk
1st Level Poster




Re: How to use DockManager control ? 

Hi there,

I didn't know what a docking manager was so i had a look at the control to see, essentially you need to add panels of controls (or user controls i suppose) to the dockingmanager control as dociking windows. You are better off just exploring and testing this your self to find which methods you prefer but this should example should get you going:

add three panels to your form, load in to the panels some random controls so that you can see what the effects would be then add a dockingmanager control

use the following code to get an idea of what it looks like

DockingWindow dw1 = new DockingWindow();
dw1.Controls.Add(panel1);
dw1.Text = "dock window 1";
panel1.Dock = DockStyle.Fill;
DockingWindow dw2 = new DockingWindow();
dw2.Controls.Add(panel2);
dw2.Text = "dock window 2";
panel2.Dock = DockStyle.Fill;
DockingWindow dw3 = new DockingWindow();
dw3.Controls.Add(panel3);
dw3.Text = "dock window 3";
panel3.Dock = DockStyle.Fill;
DockingWindow[] dws = new DockingWindow[3];
dws[0] = dw1;
dws[1] = dw2;
dws[2] = dw3;
dockingManager1.AddAutoHiddenWindows(DockStyle.Top, dws);

change the last line of code to add different types of dockable windows to see the different methods of docking

cheers james

 
New Post 5/13/2012 1:01 AM
  gcsorensen
204 posts
4th Level Poster


Re: How to use DockManager control ? 
Modified By gcsorensen  on 5/13/2012 4:04:44 AM)

James, thanks for the snippet above - it got me started - even though the initial display is very tiny!

I strongly recommend to anyone, that if you want to have a better idea of the docking manager use and appearance, then you should add an icon to each docking window, by using a line like:

this.dw1.Image = new Gizmox.WebGUI.Common.Resources.IconResourceHandle("treestar.png");

 for each of the docking windows.

Also, I recommend to use either

 

or, preferred...

 

These methods will show the docked windows in tabbed format, and then it is easy to use the right menu to dock the windows using one of the dropdown menu options...

I have an issue to raise with the Docking Manager which is not covered by the 6 or 7 Gemini issues currently active, but I will do that in another thread.

Cheers,

Geoff

 

dockingManager1.AddDockedWindowsInRootPosition(Gizmox.WebGUI.Forms.Relation.ToTheLeft, dws);

dockingManager1.AddDockedWindows(dws);

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  How to use DockManager control ?
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS