Print Page | Close Window

Unpredictable: VS2005/CommandBars+Panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3201
Printed Date: 21 June 2025 at 6:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Unpredictable: VS2005/CommandBars+Panes
Posted By: SBK2K
Subject: Unpredictable: VS2005/CommandBars+Panes
Date Posted: 10 November 2005 at 9:16pm

Hi all,

I've found some really odd behaviour from command bars and the docking pane in C#/VS2K5.

If you use the following code to create a basic layout:

axCommandBars1.LoadDesignerBars(null, null);

axDockingPane1.SetCommandBars(this.axCommandBars1.GetDispatch());

axDockingPane1.CreatePane(0, 100, 200, XtremeDockingPane.DockingDirection.DockLeftOf, null);

After first adding (IN THIS ORDER) a CommandBars object and then a DockingPane object.. the layout will not work. But if you add the objects in the reverse order (i.e. DockingPane then CommandBars) the layout works as it is expected.

This took me a long time to work out and has resulted in a lot of headscratching. So what caused this to happen?




Replies:
Posted By: SuperMario
Date Posted: 11 November 2005 at 7:23am
I bet it works if you right-click on the docking pane control and set "send-to-back".  This is true even in VB6.  The docking pane object need to be "behind" the commandbars object, this is referring to the ZOrder.


Posted By: kylechen
Date Posted: 22 November 2005 at 6:48am
I have met the same problem in VB6, and also spent days to find out ...  I really wish buddys in Codejock could add some note for such things in the limited document ~~~~~ that will be of much help for new ones.


Posted By: SuperMario
Date Posted: 22 November 2005 at 8:49am
kylechen, SBK2K:  Did my solution help you?


Posted By: kylechen
Date Posted: 22 November 2005 at 8:25pm

Yes, SuperMario, I did solve it after cut the commandbar control then paste it back  I'm following the post just want you aware:

In the future if tech writer in Codejock could add some note for such things in the reference document that will help us save much time.

BTW, Codejock's support is excellent, thank you.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net