Unpredictable: VS2005/CommandBars+Panes |
Post Reply |
Author | |
SBK2K
Newbie Joined: 04 October 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
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? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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.
|
|
kylechen
Groupie Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
|
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.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
kylechen, SBK2K: Did my solution help you?
|
|
kylechen
Groupie Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |