Print Page | Close Window

[solved] Gap between Toolbar Gripper and Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23177
Printed Date: 29 April 2024 at 11:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Gap between Toolbar Gripper and Control
Posted By: Alex H.
Subject: [solved] Gap between Toolbar Gripper and Control
Date 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



Replies:
Posted By: olebed
Date 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


Posted By: Alex H.
Date Posted: 03 November 2016 at 6:05am
Thank you it works :-)



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