I'm creating with photoshop png files for the button on an add-in for ArcGIS Pro, but for some reason they are not being displayed (the ones that come with the samples do work). Does anybody know why? #arcgispro #add-ins #buttons
Thank you Wolfgang. Now with the steps clearly stated it works perfectly.
Yes there is a step missing:
after your step 3. you have to change the "Build Action" (under all image properties) to "AddInContent".
Thank you Uma, but that button doesn't show on my reply. In any case, you can reproduce what I did:
1. Create a new project with a button
2. Copy a 16x16 and a 32x32 pixel png files in the project images folder.
3. Add them to the collection of Images in the Solution Explorer panel.
4. Replace the file name in the button smallImage and largeImage attributes in the Config.daml file referring to the new png files.
5. Run the project.
Maybe there is something else that I need to do.
Hi Andres
The "Use Advanced editor" button is highlighted in the screenshot below. When you click that, you will see an option to Attach files to your message.
Thanks
Uma
Is it the horizontal 3-point button right after the "insert video" one in your screenshot?
if so, it doesn't show on my message (neither on firefox nor iexplorer).
Hi Andres,
When you are typing up a message in GeoNet, click on the "Use Advanced Editor" on the top right corner above your message.
You will see the "Attach" option at the bottom. Like this screenshot below.
Sorry Uma, I can't find how to attach the zip file.
I can only find how to insert links, images and video.
Can you please zip up your project and add it to this thread? I can take a look at it and see why this is not working for you.
Thank you Uma
I does work using the default png file name, but not when I use a different file name.
To see where the problem lies, you could try this:
1. In Visual Studio, create a simple add-in with just a button item using the SDK Templates.
2. In your file explorer, access the Images folder of this add-in on disk.
3. You will see the GenericButtonBlue32.png and GenericButtonBlue16.png.
4. Delete them.
5. Copy your custom png to this folder and rename your png to be GenericButtonBlue32.png and GenericButtonBlue16.png
6. In Visual Studio, compile your add-in project and test if the button loads in Pro with the custom png instead of the generic blue image.
If it does, then you could check your add-in where it is not working. If it does not work, it could be a png issue.
Thank you Uma, but it is not working either.
The two things to watch for while adding a custom image to a button is:
There is a ProGuide Diagnosing ArcGIS Pro Add ins that discusses this. Check out the
Uma Harano
ArcGIS Desktop SDK team
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.