Print Page | Close Window

How to find docked pane location?

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=722
Printed Date: 01 May 2024 at 12:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to find docked pane location?
Posted By: brianh
Subject: How to find docked pane location?
Date Posted: 12 May 2004 at 6:36am

In my application I am adding panes dynamically but if there is already a pane docked at the bottom of the frame then I would like to add the new pane as a tab to this one, otherwise just dock the pane to the bottom as normal.

My problem is that although I can enumerate the pane list and find all panes that are docked, I can't identify which side they are docked to.  I know I can get the WindowRect from the pane and probably work it out from this but surely there's an easier way?




Replies:
Posted By: spiderM9
Date Posted: 02 June 2004 at 4:58pm
Ditto this problem, I was going to submit the same question.


Posted By: Oleg
Date Posted: 03 June 2004 at 1:08am

add public memeber (in next version we will add it too)

XTPDockingPaneDirection CXTPDockingPaneManager::GetPaneDirection(CXTPDockingPaneBase * pPane)
{
 ASSERT(m_pLayout);
 return m_pLayout->_GetPaneDirection(pPane);
}



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



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