Print Page | Close Window

Where will I dock?

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=16128
Printed Date: 27 February 2025 at 6:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Where will I dock?
Posted By: rdhd
Subject: Where will I dock?
Date Posted: 02 February 2010 at 3:23pm
When a pane is floating, I need to know where I would dock if the user double-clicked the pane to dock it. How can I get this information?
 
I have found that if I call GetPaneDirection that the value returned is 4 (not one of the values in XTPDockingPaneDirection enum). I see that is because I am floating. The docking pane's IsFloating returns TRUE, as expected.
 
When I step through the GetPaneDirection code it is fairly complex so I want to avoid a hack and any assumptions that would go with it. This was pretty easy to do with MFC so I assume it is easy to do with CJ but I just have not found the method or call path to returne me the information. But it has to be available otherwise when I double-click the pane, it would not know where to go!



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