 |
|
 |
I get two errors when I load up the Crom.Controls solution and try to click on the DockTest.CS form
1. Could not find type 'Crom.Controls.Docking.DockContainer'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
2. The variable '_docker' is either undeclared or was never assigned.
Instances of this error (1) 1. Crom.Controls DockTest.cs Line:234 Column:1 Hide Call Stack at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) I'm probably making a very basic mistake, I tried adding the DockControl.dll to the toolbox, that doesn't help.
what else can i try?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
If you drop a TextBox control (or any text window control) on the DockableToolWindow , then you can't select a part of the text with the mouse.
Fred.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Could you explain some things for me?
1) If we dock window on whole client area, we can't do anything with it except close. How to undock such windows? 2) When the window tabbed it have triangle button in his title, for what it? Pushing the button don't give any reaction. 3) How to dock floating window? 4) How to tab window in another window (like in VS Solution Explorer and Class View)?
And a little tip:
If we create docked window and then undock it the triangle button, the pin button and the close button still on the title until mouse move. I think it's bug.
OS: Windows XP, SP2 IDE: Visual Studio 2008 Docking Control: 1.0.0.6 .NET 3.5
Thank You
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi! I've got the same problem, as the temporary solution you can add a button, which will "redock" form: df.Parent = null; d.DockToolWindow(df, zDockMode.Left); here df is DockableToolWindow and d is DockContainer; Regards, Eugene.
P.S. Does anyone know a better solution?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
1)I want to disable the feature of docking,floating the dockcontainer on any of the sides after loading it on the left side initially. 2)the gray background of the control ie the dockcontainer takes the size to 504px on docking it to left why and how can we reduce it. 3)I am making a GUI as vs using this dock container can u help by sending any of the demo or sample code that include the tab along with the dock window.
reply asap.
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
1. The base class of dockable tool windows (called DockableToolWindow) has a virtual property called AllowedDock. This property returns by default zDockMode.All. Override it in your tool window to fit your needs. 2. Don't understand the question. If you speak about DockContainer control default size, this is provided in InitializeComponent. 3. Same, I don't understand the question. Anyway, you can find source code and source of sample app on our site.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
How is this ackcomplished. Thanks for creating and sharing this project. I have looked for the demo and have had no luck finding it.
Thanks for your time.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
As stated in the subject, if you use DockableToolWindow as your base form class, it will not call the events assigned in AddToolWindow(). I dont understand how someone is supposed to add controls to these forms other than programmatically. Or am I doing something wrong?
public partial class WndOutput : DockableToolWindow {...}
public MdiContainer() { InitializeComponent();
m_wndOutput = new WndOutput(this);
m_DockingBay.AddToolWindow(m_wndOutput);
m_DockingBay.DockToolWindow(m_wndOutput, zDockMode.Bottom);
m_wndOutput.Show(); }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I don't understand what events are not triggered.
The DockContainer control has defined these events: AutoHidePanelToggled.....Event raised when auto-hide was toggled for a panel ContextMenuRequest.......Event raised when context menu request was made. MinimumSizeChanged.......This event occurs when the minimum allowed size for the container was changed. The form on which this container is placed should be sized to display the entire container
The rest of the events are those defined public in base classes (System.Windows.Forms.Control, etc).
Usually, if you have an issue on which you need help you should put it in a form like this:
>> What is happening (short and explicit statements) >> What you expect to happen (short and explicit statements)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi ..
U had made a Very Nice Control. but i need a help in ur control I need to add a treeview & a textbox added in the DockableTooWindow say 'form1' (I had DONE THAT) & Alwayz i need tht form1 in Left Panel... (I HAD DONE THAT).
But when ever i drag that Form1 in Right Panel or Top Panel or Bottom Panel . I m not able to maintain the height & width of those textBox & treeview. Kindly help Me ..Plz.
Becoz ur Control is My Application's BAse.
My MailID is tushar.capoor@gmail.com
Thanxss Regards
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
 |
I'm add your component in my form. and create a new form. a new form is name "VToolBox". This Doesn't work :
VToolBox vs = new VToolBox(); dockContainer1.DockToolWindow(vs); vs.Show();
Error : no overload for method "DockToolWindow" takes '1' arguments.
How to Dock DockContainer in my Form?
Please Help me!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
There is documentation for this product at "http://www.osec.ro/ro/Documentatie/DockContainer/index.html"
The signature of DockToolWindow is:
public void DockToolWindow( DockableToolWindow toolWindow, zDockMode dockMode );
In your code you've missed the "dockMode" param:
dockContainer1.DockToolWindow(vs, missingArg);
Here is a sample of how to use this method. It will add a form to the dock container with initial docking on Left.
private void OnCreateNewToolWindowDockedLeft (object sender, EventArgs e) { // Create a new instance of the child form. DockableToolWindow childForm = new DockableToolWindow ();
// Add and dock the form in the left panel of the container _dockContainer1.DockToolWindow (childForm, zDockMode.Left);
// Show the form childForm.Show (); }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I think what you want is to add you form as a DockToolWindow. To do this, just go to you code (Form1.cs) and make it inherit from DockableToolWindow instead of Form.
Here is an example:
public partial class Form1 : Form { ...... }
Replace it with:
public partial class Form1 : DockableToolWindow { ...... }
Don't forget to add the reference:
using Crom.Controls;
To attach the form to the dock container you can do this:
DockableToolWindow vs = new Form1(); dockContainer1.DockToolWindow(vs); vs.Show();
If you have problems loading your form with the visual studio form designer, just give visual studio a break, close the solution and open it again. I'm sure it works.
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
 |
OK I did that. What happens is a blank child window opens instead of my form.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Crom.Controls;
namespace prjDockableContainer { public partial class viewTestForm : DockableToolWindow {
} }
And
private void showChildToolStripMenuItem_Click(object sender, EventArgs e) { viewTestForm child = new viewTestForm(); this.projectContainer.AddToolWindow(child);
child.Show(); }
Which supposed to show the viewTestForm with a couple of labels. Instead a get a blank form.
modified on Thursday, April 9, 2009 4:01 PM
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Fixed it. When I wrote child form intially as DockableToolWindow I got an error reporting that InitializeComponent was not public. So I took it out on the assumption that the DockableToolWindow's constructor contained it. It didn't. But when I re-entered InitializeComponent, i did not get that error, and everything worked as designed.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
While using your Dock container project I found a slight problem on windows Vista. Under Vista the auto hide buttons etc do not get drawn. To fix this problem you need to change GetDCEx call inside the DrawExtraButtons method in the DockableToolWindow class which looks like this
IntPtr dc = GetDCEx(hWnd, new IntPtr(1), DCX.WINDOW | DCX.INTERSECTRGN | DCX.CACHE | DCX.CLIPSIBLINGS);
the problem is Vista will always return this as a 0 value, I don't know why the vista behavior is different from XP, but it is, and so when you check if the dc is null it always is, so if you change the line to this
IntPtr dc = GetDCEx (hWnd, (IntPtr)0, (DCX.WINDOW | DCX.CACHE | DCX.CLIPSIBLINGS));
everything works fine, just thought I would pass this on
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
I don't think this solved it for me. I only get a Close button, and now I have to try to get rid of some icon that shows at the bottom of every new DockableToolWindow, i even have ShowIcon = false, but there's some broken image at the bottom that does nothing.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
I just found a way around it. That little bottom thing where it says Window1 in your screenshot, seems you call it "TabButton", when I return out of it (the TabButton's Draw-method) at once - because it looks just like on your screenshot (not so pretty) - i suddenly get to see the Pin and the arrow-down icon (which does nothing). When I pin it however and it hides, I can't get it back by hovering over that area.
Glad to see this dockable window tool at all, it's a cool thing, but it seems a bit buggy - atleast for a Vista user. I hope you guys get time to perfect the last little bugs and it'd be awesome.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
 |
Please provide steps (including form & tool window sizes & positions) and eventually some screen captures. You can send them by mail to contact@osec.ro with the subject "Dockable tool window issues"
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |