Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Unpredictable: VS2005/CommandBars+Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unpredictable: VS2005/CommandBars+Panes

 Post Reply Post Reply
Author
Message
SBK2K View Drop Down
Newbie
Newbie


Joined: 04 October 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote SBK2K Quote  Post ReplyReply Direct Link To This Post Topic: Unpredictable: VS2005/CommandBars+Panes
    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?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2005 at 8:49am
kylechen, SBK2K:  Did my solution help you?
Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.