Print Page | Close Window

Task panel in docking pane

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=876
Printed Date: 23 November 2024 at 7:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Task panel in docking pane
Posted By: GaryAlpha
Subject: Task panel in docking pane
Date Posted: 22 June 2004 at 4:18pm

I have put a task panel in a docking pane using a form with a total of three docking panes created. The form is the client window for a shortcut bar.

When the app first run the task panel appears in the correct position within its docking pane.

However the first click on the task panel causes the task panel to move to its original design time position & size on the form. If I subsequently resize one of the docking panes then the task panel  moves back to its correct position & size inside the docking pane. There after it seems to function normally.

I am using xtreem suite version 8.7

Hope you are able to sort it. 



-------------
Product: Xtreme SuitePro(ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: VB.Net 9/3.5 SP1



Replies:
Posted By: SuperMario
Date Posted: 22 June 2004 at 4:28pm
Try using the CommandBars.MoveAlignedControl method and use it in the CommandBars_RepositionAlignedControls event.  The MoveAlignedControl method is used to move other controls on the same form as command bars.  The RepositionAlignedControls occurs when the area occupied by controls docked to the edges of the form has to be retrieved.  For example, this event is triggered when a control or command bar is added/removed, when the status bar is hidden/unhidden, when the window is resized, when a document is opened/closed, when a new tab is clicked, etc...

Try adding this code:

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

You might also try adding this code:

Private Sub CommandBars_Resize()
    Dim Left As Long, Top As Long, Right As Long, Bottom As Long, nWidth As Long
    CommandBars.GetClientRect Left, Top, Right, Bottom
    nWidth = IIf(Right - Left < 3400, Right - Left, 3400)
    wndTaskPanel.Move Left, Top, nWidth, Bottom - Top
End Sub

If this does not work, send me a small sample to debug.



Posted By: Oleg
Date Posted: 23 June 2004 at 12:41am
You must put TaskPanel to PictureBox

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: GaryAlpha
Date Posted: 23 June 2004 at 4:35pm

Oleg/SuperMario

Thanks for the ideas, I tried putting pane in to picturebox and yes it does solve that problem of it moving when first clicking on it.  Is this behaviour by design or is a bug which will be fixed in due course.

But now...

However, the task panel appears to be offset downwards from top of picturebox client area by what a look likes the height of the pane caption (even though there is a caption on the pane). I have temp over this problem by moving the Taskpanel up by the appropriate amount when ever the picture box is resized.

Any ideas why this offset is happening ?

Gary



-------------
Product: Xtreme SuitePro(ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: VB.Net 9/3.5 SP1


Posted By: GaryAlpha
Date Posted: 05 July 2004 at 3:59pm

Re the offset above

Was just me being a bit dumb and using the pane top pos in stead of 0.

 

 



-------------
Product: Xtreme SuitePro(ActiveX) version 12.0.2
Platform: Windows XP (32bit) - SP 3
Language: VB.Net 9/3.5 SP1



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