Saphirah
Active member
- Local time
- Today, 17:45
- Joined
- Apr 5, 2020
- Messages
- 163
Hello everyone,
for my current project i created a custom Ribbon Bar using XML. For that i want to use custom icons, as you can see in this screenshot.
Basically my goal is to load an image (Red circles with numbers from 1-10) and display one of them, depending on a variable.
I created a bunch of bmp files with gimp, 32 bit using alpha channel, and the image displays correct in my photo viewer.
But every time i try to load the image using this access vba code
it prints an error:
I did read online that the tool i used to export the images (GIMP) exports bmp files as an invalid format. That is why i pasted the image in Paint, exported it as a bmp and it loaded fine, but lost its transparency, as you can see in the screenshot.
So here is my question. What tools do you use to create a custom Ribbon icon? How can i import a transparent image as a ribbon icon? Maybe a different file format?
Thank you very much!
for my current project i created a custom Ribbon Bar using XML. For that i want to use custom icons, as you can see in this screenshot.
Basically my goal is to load an image (Red circles with numbers from 1-10) and display one of them, depending on a variable.
I created a bunch of bmp files with gimp, 32 bit using alpha channel, and the image displays correct in my photo viewer.
But every time i try to load the image using this access vba code
Code:
Public Sub LoadImages(imageId As String, ByRef Image)
Set Image = LoadPicture(CurrentProject.Path & "\Icons\" & imageId)
End Sub
it prints an error:
Code:
Error 481: Invalid Picture
I did read online that the tool i used to export the images (GIMP) exports bmp files as an invalid format. That is why i pasted the image in Paint, exported it as a bmp and it loaded fine, but lost its transparency, as you can see in the screenshot.
So here is my question. What tools do you use to create a custom Ribbon icon? How can i import a transparent image as a ribbon icon? Maybe a different file format?
Thank you very much!