After upgrading to 3.4, some of the Addin icons don't load properly

476
12
01-30-2025 10:04 AM
zhangjinzhou
Emerging Contributor

zhangjinzhou_0-1738260055442.png

I am working on a ArcGIS Pro Addin. The ribbon was good in ArcGIS Pro 3.2. After upgrading to 3.4, some of the buttons don't load properly anymore. All of the buttons are 32px by 32px png. What could be the issue?

 

// Some sample code
        <group id="CommunityVizPro_ComponentsGroup" caption="CViz Pro Analysis Components" appearsOnAddInTab="false" condition="cvpro_isCVAnalysisCondition">
          <button refID="CommunityVizProModule_ShowScenarioManagerButton" size="large" />
          <button refID="CommunityVizProModule_ShowTagManagerButton" size="large" />
          <button refID="CommunityVizProModule_DataPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_ChartPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_AssumptionPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_IndicatorsPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_AttributesPane_ShowButton" size="large" />
          <button refID="CommunityVizProModule_ShowSavedViewManagerButton" size="large" />
          <!-- <button refID="CommunityVizProModule_AnalysisPropertyPage_ShowButton" separator="true" size="large"/>-->
        </group>

        <button id="CommunityVizProModule_ShowTagManagerButton" caption="Tags" className="ShowTagManagerButton" loadOnClick="true" smallImage="Images\TagManager_32.png" largeImage="Images\TagManager_32.png">
          <tooltip heading="Show Tag Setup">Open window for managing CViz Pro tags<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowSavedViewManagerButton" caption="SavedViews" className="ShowSavedViewManagerButton" loadOnClick="true" smallImage="Images\SavedViewManager_32.png" largeImage="Images\SavedViewManager_32.png">
          <tooltip heading="Show Saved View Setup">Open window for managing CViz Pro saved views<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowScenarioManagerButton" caption="Scenarios" className="ShowScenarioManagerButton" loadOnClick="true" smallImage="Images\Scenarios_32.png" largeImage="Images\Scenarios_32.png">
          <tooltip heading="Show Scenario Setup">Open window for managing CViz Pro scenarios<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowUpdateAnalysisButton" caption="Update Analysis" className="ShowUpdateAnalysisButton" loadOnClick="true" smallImage="Images\UpdateAnalysis_16.png" largeImage="Images\UpdateAnalysis_32.png">
          <tooltip heading="Show Update Analysis form">Re-run formulas for selected analysis components.<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_SuitabilityToolButton" caption="Suitability" className="SuitabilityToolButton" loadOnClick="true" smallImage="Images\Suitability.png" largeImage="Images\Suitability.png">
          <tooltip heading="Suitability Wizard">Rate the suitability of different locations for a given purpose.<disabledText /></tooltip>
        </button>

 

12 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

I think it could be duplicate of the thread.

0 Kudos
MK13
by
Frequent Contributor

@GKmieliauskas I have the same problem. Is there a fix?

0 Kudos
GKmieliauskas
Esri Regular Contributor

@MK13 Sorry. I am Esri distributor only. My situation is very similar to yours.

0 Kudos
-_-
by
Frequent Contributor

I have the same problem.
In my case, I created a button that displayed the current page name of the map series in the caption, and displayed the page name text in the quick toolbar.
I also created some other buttons with original icons.
3.4 changed all the buttons to just a blue circle button.

0 Kudos
vanesch
Occasional Contributor

I believe there’s an issue in 3.4 with ribbon buttons not properly stretching the image when using a small icon (16x16) in place of a requested large icon (32x32); the ImageSource doesn't stretch correctly. Can you verify your icon size? 

0 Kudos
MK13
by
Frequent Contributor

@vanesch  The 32 by 32 buttons aren't showing up properly either. They are displaying like a 16 by 16.

0 Kudos
vanesch
Occasional Contributor

Would it be possible for you to send me your add-in?

0 Kudos
vanesch
Occasional Contributor

I think this is still the same issue. Can you verify the png is correct, i think it has a bad scaling set.

 

vanesch_1-1739560482139.png

 

0 Kudos
MK13
by
Frequent Contributor

@vanesch I have attached the project that contains the misdrawn buttons. I am not quite sure I understand what you mean by 'verify if the png is correct.' Is that something that is done in visual studio?

0 Kudos