Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - c# mdi app with taskpanel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

c# mdi app with taskpanel

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Topic: c# mdi app with taskpanel
    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 ?
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: 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.
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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 ... ?

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: 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;
        }
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2006 at 2:47pm

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

Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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 ?

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.199 seconds.