Print Page | Close Window

Bug in CXTPDockingPaneManager::_ToggleDocking

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=10583
Printed Date: 30 January 2025 at 6:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in CXTPDockingPaneManager::_ToggleDocking
Posted By: znakeeye
Subject: Bug in CXTPDockingPaneManager::_ToggleDocking
Date Posted: 10 May 2008 at 8:24pm
I have a docking pane at the right, and I do not allow it to dock to the left:
 
if (pAction->action == xtpPaneActionDocking)
{
    if (pAction->dockDirection != xtpPaneDockRight)
        pAction->bCancel = TRUE;
}
 
Now I detach this pane to floating mode. What happens if I double-click the caption? Nothing! But it should re-attach to the right!
 
The problem lies here: XTPDockingPaneManager.cpp(753)
 
We can see that the notification sent is an explicit "dock to left"-event!

BOOL NotifyAction(XTPDockingPaneAction action, CXTPDockingPane* pPane, CXTPDockingPaneBase* pDockContainer = NULL, XTPDockingPaneDirection dockDirection = xtpPaneDockLeft);




Replies:
Posted By: Oleg
Date Posted: 11 May 2008 at 1:40am
Hello,
yes, thanks, now you're right :(


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


Posted By: bleum
Date Posted: 16 March 2012 at 1:40am
Hi Oleg
i have the same problem with znakeeye, it seems the default value of dockDirection  is still xtpPaneDockLeft.
Can you help me ASAP?



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