Print Page | Close Window

Programmatically resizing a docking pane

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=18949
Printed Date: 26 April 2024 at 8:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Programmatically resizing a docking pane
Posted By: joep
Subject: Programmatically resizing a docking pane
Date Posted: 14 September 2011 at 10:48am
Depending on the (dynamic) content of a docking pane I would like to programmatically change the pane size. Does anyone have tips for this?
Regards, Joep



Replies:
Posted By: joep
Date Posted: 15 September 2011 at 7:52am
I found that I can use CXTPDockingPane::SetMinTrackSize() for this and after that call CXTPDockingPaneManager::RecalcFramesLayout() to resize the pane.
However, when I subsequently save the layout and reload it at program start with SetLayout(), the resizing is not remembered as all other layout properties are.
 
What do I have to do after RecalcFramesLayout() to get this persistent?



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