Pane.handle objects detach when clicked on |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |