c# mdi app with taskpanel |
Post Reply |
Author | |
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
Posted: 29 March 2006 at 5:10am |
Currently I´m trying to create a c# 2005 mdi application with the CodeJock CommandBars. Is there any solution to create a taskpanel on the left side without using a docking pane ?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Here is VB6 code snippet:
Try addeing the following code to the CommandBars_RepositionAlignedControls event assuming you name your TaskPanel "wndTaskPanel": Private Sub CommandBars_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long) CommandBars.MoveAlignedControl wndTaskPanel, Left, Top, Right, Bottom End Sub and set dock style to left in IDE. |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
I´ve tried that C# 2005 code: private void CommandBars_RepositionAlignedControls(object sender, AxXtremeCommandBars._DCommandBarsEvents_RepositionAlignedControlsEvent e){ CommandBars.MoveAlignedControl(TaskPanel, out e.left, out e.top, out e.right, out e.bottom ); } But it does not work. The TaskPanel control is in front of the CommandBar control and the MDI child area is not affected ... ? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Ok, I see. This code will only work in VB6 as TaskPanel is a Visual Basic object. There is no way to extract a window handle from an active x control so this won't work in C#. As an alternative you can use the DockBar to host the TaskPanel or the code below, however it makes the window flash:
private void CommandBars_RepositionAlignedControls(object sender, AxXtremeCommandBars._DCommandBarsEvents_RepositionAlignedCon trolsEvent e) { TaskPanel.SetBounds(e.left, e.top, TaskPanel.Width, e.bottom - e.top); e.left += TaskPanel.Width; } |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
I´m sorry to hear that |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
I´ve played around ad I didn´t found a good way to use commandbars with docking panes in vs 2005 ( c# ). If I eg. resize the window it flickers very very much ! |
|
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 |