Print Page | Close Window

Restrict pane resize on Frame Resize

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=19553
Printed Date: 16 April 2024 at 12:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Restrict pane resize on Frame Resize
Posted By: mojonez
Subject: Restrict pane resize on Frame Resize
Date Posted: 07 March 2012 at 9:25pm
I have a typical standard frame window with a single docking pane manager with multiple panes.
 
When the user resizes the frame window, i am trying to have only have particular pane(s) resize (e.g. all middle column panes)  -  not all panes resize gradually as is the default behavior. 
 
Sort of a "preferred pane size".
 
In general, all panes have their own custom min/max sizes, so they are not restricted from being manually resized via their splitter directly, so i cant simply set their size as fixed.
 
I tried freezing some panes size on main fame RecalcLayout before the size notify goes into the docking manager, then unfreezing them after, but this does not work (bad things happen in the thread when panemanager->RecalcFrameLayout(pane) is called).
 

CRect r = pane->GetPaneWindowRect();
sz.SetSize(r.Width(), r.Height());
pane->SetMinTrackSize(sz);
pane->SetMaxTrackSize(sz);
m_paneManager.RecalcFrameLayout(pane);

[/code]
Skipping the RecalcFrameLayout call doesnt seem to work either.
 
Has anyone found a way to achieve this?
 
 



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