![]() |
Resizing docking panes |
Post Reply
|
| Author | |
rag6419
Newbie
Joined: 07 March 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: Resizing docking panesPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 March 2007 at 1:19am |
|
Hi,
try m_paneManager.SetClientMargin(10);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
rag6419
Newbie
Joined: 07 March 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
rag6419
Newbie
Joined: 07 March 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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. ![]() ![]() ![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |