Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Pane.handle objects detach when clicked on
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane.handle objects detach when clicked on

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

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: Pane.handle objects detach when clicked on
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post 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
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.160 seconds.