Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Resizing docking panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resizing docking panes

 Post Reply Post Reply
Author
Message
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post Topic: Resizing docking panes
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2007 at 1:19am
Hi,
 
try m_paneManager.SetClientMargin(10);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post 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.



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.