Print Page | Close Window

Resizing 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=6602
Printed Date: 12 November 2025 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resizing docking panes
Posted By: rag6419
Subject: Resizing docking panes
Date Posted: 08 March 2007 at 6:58pm
I've created a new docking pane theme and need to create more gutter space from the edges to where the panes are drawn (i.e. increase the buffer from the bottom and right edges to extent of the pane).

I didn't see any virtual functions I could over ride after deriving a class from CXTPDockingPaneManager.  I was curious as to how I could handle this.



Replies:
Posted By: Oleg
Date Posted: 09 March 2007 at 1:19am
Hi,
 
try m_paneManager.SetClientMargin(10);


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


Posted By: rag6419
Date Posted: 09 March 2007 at 11:34am
I'm not sure why it's happening this way, but the client region of the frame for the docking pane manager is increasing instead of the client region of the docking pane manager.


Posted By: Oleg
Date Posted: 12 March 2007 at 2:02am

Right, didn't undertood exactly what you need...

there is no such method, you can create additional window as pane host and put your panes's windows to this one with some margins.


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


Posted By: rag6419
Date Posted: 12 March 2007 at 12:02pm
I do have a CWnd as the parent for the dialog I'm creating.  I modified the OnSize function to redraw the CWnd and CDialog 5 pixels shorter and narrower.  I'd like to avoid custom drawing with OnCtrlColor (since we may be swapping out colors on the fly), so I didn't know if you had any other thoughts. 

This screen shot shows the 5 pixel buffer that is being colored with the default dialog background.  I tried modifying the extended window styles to have them as transparent, but that didn't work and caused some other painting problems.






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