Print Page | Close Window

Lock pane sizing?

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=4421
Printed Date: 12 December 2024 at 6:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Lock pane sizing?
Posted By: guywmustang
Subject: Lock pane sizing?
Date Posted: 15 June 2006 at 7:31pm
Is there a way currently to lock pane sizing?  I don't want the panes to be freely sizeable.
 
Thanks!  Keep up the good work Smile



Replies:
Posted By: Oleg
Date Posted: 15 June 2006 at 9:03pm
Hi,
 
m_paneManager.LockSplitters();


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


Posted By: guywmustang
Date Posted: 20 June 2006 at 2:11pm
That doesn't work when I have a floating pane with other panes docked within it.  You can size the floating window by draggingthe outside borders of it.
 
Any way to lock it in this case?


Posted By: guywmustang
Date Posted: 21 June 2006 at 5:03pm
<bump>


Posted By: Oleg
Date Posted: 21 June 2006 at 7:51pm
Hi.
 
Solution 1:
 
1. Run DockingContainers - it show how to use custom contaiers.
2. For CDockingPaneMiniWnd (it is container for Floating window) add
 
 
BEGIN_MESSAGE_MAP(CDockingPaneMiniWnd, CXTPDockingPaneMiniWnd)
 ...
  ON_WM_NCHITTEST_EX()
END_MESSAGE_MAP()
 
LRESULT CDockingPaneMiniWnd::OnNcHitTest(CPoint point)
{
 LRESULT ht = CXTPDockingPaneMiniWnd::OnNcHitTest(point);
 if (ht >= HTSIZEFIRST && ht <= HTSIZELAST)
  ht = HTCLIENT;
 return ht;
}
 
 
or Solution 2
 
if you just need some pane to restrict size use
 
pPane->SetMinTrackSize(sz) and pPane->SetMaxTrackSize(sz)


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


Posted By: guywmustang
Date Posted: 22 June 2006 at 1:00pm

Thanks, I'll give that a try and let ya know what worked!




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