Print Page | Close Window

[SOLVED]status bar cant print text with xaml icon

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=24443
Printed Date: 09 May 2024 at 7:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED]status bar cant print text with xaml icon
Posted By: davidu
Subject: [SOLVED]status bar cant print text with xaml icon
Date Posted: 20 November 2023 at 12:18pm
Hi,

THere is a bug for CXTPStatusBarPaintManager::DrawStatusBarPaneEntry

The rect to print the text of the pane is calculated wrong when the pane icon is xaml. probably line 244 should be modified where I marked here.

            CSize szIcon = (pIcon->IsVectorIcon()
-->issue is here. should be size of icon             ? rcItem.Size()
            : CXTPPaintManager::AdjustDpiIconSize(
              pIcon, pIcon->GetExtent(),
             XTP_SAFE_GET2(pPane, GetStatusBar(), GetCommandBars(), NULL),
  rcItem.Size()));



Replies:
Posted By: agontarenko
Date Posted: 09 January 2024 at 4:27am
Hello,

I have checked this code and any problems has not found. 
If vector icon is used then rcItem size is used.

Regards,
Artem Gontarenko



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