Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [solved] Gap between Toolbar Gripper and Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Gap between Toolbar Gripper and Control

 Post Reply Post Reply
Author
Message
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Gap between Toolbar Gripper and Control
    Posted: 02 November 2016 at 3:34am
Could you please provide a sourcecode patch to fixt this problem:

I need a small gap betweeen the gripper of a toolbar and the first control (1-2 Pixel would be enough).



I will compile ist myself, just tell me where to add the sourcocde change.
Same problem with XTP 17.2 and 17.3

Thanks
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: 02 November 2016 at 2:50pm
Hello Alex,

You can change this gap in method DrawCommandBarGripper. For office2013 it is method CXTPCommandBarsOfficeXPTheme::DrawCommandBarGripper  in file  Source\CommandBars\Themes\XTPCommandBarsOfficeXPTheme.cpp.  CXTPCommandBarsOfficeXPTheme::DrawCommandBarGripper returns size of gripper, but it isn't calculated, just  
return CSize(XTP_DPI_X(6), 0);
so you can set 7-9px
return CSize(XTP_DPI_X(8), 0);

These changes also impact on old themes officeXP and Visual Studio 2003.

I have added this fix. Thank you for bringing this to our attention. 

Regards,
 Oleksandr Lebed
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2016 at 6:05am
Thank you it works :-)
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.188 seconds.