Print Page | Close Window

[solved] Ribbon Tooltip Images Blurred v17.3

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=23173
Printed Date: 21 November 2024 at 10:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Ribbon Tooltip Images Blurred v17.3
Posted By: cpede
Subject: [solved] Ribbon Tooltip Images Blurred v17.3
Date Posted: 31 October 2016 at 4:25am
Even the Ribbon icon images are set to not scale with high DPI, the corresponding tool tip image is.



Please do not scale the tool tip images when Ribbon images are set to not scale, or make it selectable.

-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: cpede
Date Posted: 31 October 2016 at 5:02am
In other words, the method:

pCommandBars->GetCommandBarsOptions()->SetDPIScallingOptions(FALSE, FALSE);

does not seem to have any effect, or can it be used in a wrong way?

-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)


Posted By: astoyan
Date Posted: 31 October 2016 at 9:43pm
Thanks for reporting the issue, it's been added to our bug database and will be resolved for the next update.
Regards,
  Alexander


Posted By: olebed
Date Posted: 09 February 2017 at 3:36pm
Hello cpede,

CXTPToolTipContext is independed from XTP CommandBars that is why can't be dependent of SetDPIScallingOptions().

We have added new methods CXTPToolTipContext::EnableImageDPIScaling and IsImageDPIScalingEnabled (ImageDPIScaling in ActiveX) to manage this option. Improving will be available in next release.

As hotfix you can delete highlighted XTP_DPI macros in methods:
CSize CXTPToolTipContextToolTip::GetToolSize(TOOLITEM* lpToolInfo)
{
    ...
    if (bDrawImage)
    {
        szImage = CSize(XTP_DPI_X(m_pIcon->GetWidth()), XTP_DPI_Y(m_pIcon->GetHeight()));
        bDrawImageTop = (szImage.cy <= XTP_DPI_Y(16));
    ...
}

void CXTPToolTipContextToolTip::DrawEntry(CDC* pDC, TOOLITEM* lpToolInfo, CRect rc)
{
    ...
    if (bDrawImage)
    {
        szImage = CSize(XTP_DPI_X(m_pIcon->GetWidth()), XTP_DPI_Y(m_pIcon->GetHeight()));
        bDrawImageTop = (szImage.cy <= XTP_DPI_Y(16));
    ...
}

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