Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [solved] Docking Pane Caption Space
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Docking Pane Caption Space

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Docking Pane Caption Space
    Posted: 28 August 2017 at 7:57am
As can be seen using the Ribbon Sample and Office theme a vertical gab underneath the docking pane caption exist.



I want to have the content of the docking pane right up to the caption, but there is a gab. In the sample a dialog is added to the pane containing a list. Even though I move the list to a top position of 0, there still is a gab.

How do I get rid of the vertical gab?

-cpede


Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 04 September 2017 at 2:02am
Any comments from CJ?
Product: Xtreme ToolkitPro (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2018 at 3:52pm
Hello cpede,

This gap is splitter. You can set it to several pixels, but then it will be hard to catch splitter.
  m_paneManager.SetTheme(nTheme);
  m_paneManager.SetClientMargin(nMargin);
  m_paneManager.GetPaintManager()->m_nSplitterSize = XTP_DPI_Y(1);

Also in Office2013 and 2016 are gap under CaptionBar in DockingPane. It can be changed by setting desirable rectangle in INI files  in section
[DockingPane]  
  CaptionMargin = 5 5 5 0

Regards,
 Oleksandr Lebed
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2018 at 11:11am
I have changed that rectangle to {5 0 5 0} in all Office2013 and Office2016 INI files.
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.187 seconds.