Print Page | Close Window

c# mdi app with taskpanel

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3903
Printed Date: 17 November 2024 at 7:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: c# mdi app with taskpanel
Posted By: tobi
Subject: c# mdi app with taskpanel
Date 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 ?



Replies:
Posted By: SuperMario
Date Posted: 03 April 2006 at 12:32pm
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.


Posted By: tobi
Date Posted: 03 April 2006 at 2:15pm

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 ... ?



Posted By: SuperMario
Date Posted: 03 April 2006 at 2:43pm
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;
        }


Posted By: tobi
Date Posted: 03 April 2006 at 2:47pm

I´m sorry to hear that
Will CodeJock provide .net controls in the near future ???



Posted By: tobi
Date Posted: 14 May 2006 at 2:29pm

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  !
Is there any way to use commandbars and docking panes with c# without these problems ?
Does anyone do this ?




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