Print Page | Close Window

In the ribbon, a 16x16 SVG icon is displayed as 32

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=24574
Printed Date: 12 May 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: In the ribbon, a 16x16 SVG icon is displayed as 32
Posted By: hiro-ta
Subject: In the ribbon, a 16x16 SVG icon is displayed as 32
Date Posted: 12 May 2025 at 1:50am

Hello,

Added a “copy” 16x16 SVG icon in XTremeToolkit's CXTPImageManager as follows

UINT w16 = XTP_DPI_X(16); CString type(_T("RT_SVG")); m_svgImageManager.SetVectorIcon(type, IDR_SSI_NORMAL_COPY, ID_EDIT_COPY, w16); CXTPImageManager* pImgMgr = pCommandBars->GetImageManager(); pImgMgr->AddIcons(&m_svgImageManager);

Then I created a ribbon as follows.

CXTPRibbonTab* pTab = pRibbonBar->AddTab(ID_TAB_HOME); pGroup = pTab->AddGroup(ID_GROUP_EDIT); pControl = pGroup->Add(xtpControlButton, ID_EDIT_COPY);

But when I run it, the “Copy” icon is initially 16x16, but when I expand the window size, it shows up as 32x32.
This did not happen when I was using raster icons. Have the specifications changed?
How can I make it so that it does not appear as 32x32 when the window is expanded?





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