Print Page | Close Window

Pane.handle objects detach when clicked on

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=8779
Printed Date: 04 July 2024 at 12:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane.handle objects detach when clicked on
Posted By: LeeHayton
Subject: Pane.handle objects detach when clicked on
Date Posted: 14 November 2007 at 9:16am
When I click on the contents of pane1 or pane2 it jumps out of the pane back on to it's original position on the form where placed in design time.  Why is that?
 
This does not happen when there is only one taskpanel on the form.
 
Below is my code.
 
Dim dp1 As Pane, dp2 As Pane
With DockingPane1
    Set dp1 = .CreatePane(1, 100, 100, DockLeftOf, Nothing)
        dp1.Handle = TaskPanel1.hWnd
    Set dp2 = .CreatePane(2, 100, 100, DockBottomOf, dp1)
        dp2.Handle = TaskPanel2.hWnd
End With
Thanks
Lee



Replies:
Posted By: Oleg
Date Posted: 15 November 2007 at 8:54am
Yes, its problem of all MFC controls :( Please add PictureBox, move TaskPane to Picturebox and attach it to panes instead.
 


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


Posted By: LeeHayton
Date Posted: 15 November 2007 at 9:12am
Actually I have been getting round the problem by doing the exact same thing. 
 
As long as I'm not doing something wrong then ok.
 
Thanks
Lee



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