Print Page | Close Window

[solved] Ribbon rendering bug in v17.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22935
Printed Date: 05 October 2024 at 3:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Ribbon rendering bug in v17.1
Posted By: markr
Subject: [solved] Ribbon rendering bug in v17.1
Date Posted: 22 February 2016 at 4:57pm
Hello,

There's a ribbon bar rendering bug in XTP v17.1 when using Office 2013 themes. To reproduce, start the CodeJock ribbon bar sample application, maximize the window, then switch current theme to Office 2013 (Dark Gray version).

These steps result in an unwanted white strip appearing to the left and right of the ribbon bar tabs. Here's a screenshot:



You won't notice the problem if only ever use the normal "light" Office 2013, but the problem is visible with the dark or light gray variations.

If anyone knows of a quick fix or workaround, that would be great, as we use these themes quite heavily.

Regards,

Mark R.



Replies:
Posted By: olebed
Date Posted: 02 March 2016 at 3:21pm
Hello Mark,

I found out cause of bug. It was introduced when fixing other issue.

As hot fix you can delete lines in  CXTPRibbonBar::GetCaptionHeight()

//If main window is full screen increase caption height fro 4px. Fix for Win8
    if (XTPSystemVersion()->IsWin8OrGreater() && (AfxGetMainWnd() != NULL) && ((AfxGetMainWnd()->GetStyle() & WS_MAXIMIZE) != 0))
    {
        nHeight += m_nQuickAccessHeightDiff;
    }

These lines were added to fix other issue but now they are not necessary.
There left some excessive one pixel line above ribbon (Win 8.1), I continue to investigate and fix it.

The fix will be available in the next beta of final release. Once you have an update installed, please make sure everything works as  expected, let me know if there are any issues left.

Regards,
 Lebed Oleksandr



Posted By: markr
Date Posted: 02 March 2016 at 3:31pm
Hi Lebed,

Thanks very much - your fix worked nicely. 

As you mentioned, there's still a one pixel line present, but its far less noticeable.

- Mark R.


Posted By: markr
Date Posted: 18 April 2016 at 10:20am
One pixel white line still present in the v17.2 release.  :-(

- Mark R.


Posted By: olebed
Date Posted: 18 April 2016 at 12:44pm
Hello Mark,

Unfortunately I have not found reason of that one pixel line.

Regards,
 Oleksandr Lebed




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