Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [solved] Ribbon Tooltip Images Blurred v17.3
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Ribbon Tooltip Images Blurred v17.3

 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] Ribbon Tooltip Images Blurred v17.3
    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 (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: 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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 284
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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.141 seconds.