Print Page | Close Window

Docking Panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13080
Printed Date: 21 December 2024 at 8:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking Panes
Posted By: terrym
Subject: Docking Panes
Date Posted: 06 January 2009 at 4:34am
Hi
 
How can we dynamically hide/show docking panes from within our application please
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Smucker
Date Posted: 06 January 2009 at 7:24am
Here's the code I use to toggle panes by ID. This should be enough to get you what you need.

Note that most of the methods can also take a CXTPDockingPane*.


void CMainFrame::TogglePane(int id)
{
    if (m_paneManager.IsPaneClosed(id))
        m_paneManager.ShowPane(id);
    else if (m_paneManager.IsPaneHidden(id))
        m_paneManager.ToggleAutoHide(m_paneManager.FindPane(id));
    else
        m_paneManager.ClosePane(id);
}


HidePane() is also available.



-------------
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)




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