Transparency Issues

Add-in Express™ Support Service
That's what is more important than anything else

Transparency Issues
Cannot get transparent color prop right 
Alex Abramov




Posts: 34
Joined: 2006-09-15
All,

I trying to get images to be transparent on ExplorerBar
I have read through several threads dealing with this issue, and have tried to implement the suggestions in them.

So far I tried:
1. Switching to .BMP files
2. Making sure the are 32bit color
3. Removing all images from ImageList, changing transparency to Transparent and re-adding images and switching transparency in the button properties
4. Deleting the image list and following steps in item 3 with a new one.

No matter what I do, the icons show up with either the original transparent color (black in case of 32bit BMP) or blue background.

Any more ideas?

TIA,
Alex Abramov

ADX2009, VS2008, Office 2002 (XP)
Posted 16 Dec, 2009 12:33:25 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Alex.

We support the automatic transparency for menu items and command bar buttons only.
To make images transparent on ExplorerBar you need to fill the background with an appropriate color.
Posted 17 Dec, 2009 08:00:34 Top
Alex Abramov




Posts: 34
Joined: 2006-09-15
I was wrong, the component I use is ADXCommandBar
Posted 18 Dec, 2009 10:56:52 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Alex.

Please try to use .bmp images with 256 colors.
Posted 22 Dec, 2009 10:54:54 Top
Alex Abramov




Posts: 34
Joined: 2006-09-15
What if I want to use better icons, with more colors?
Can .png icons be used?
Posted 12 Jan, 2010 16:34:21 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Hi Alex,

They recommend using 256 colors. As far as I know Delphi doesn't support .png.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Jan, 2010 07:07:39 Top
Alex Abramov




Posts: 34
Joined: 2006-09-15
Andrei,
I am using VS 2008.
I was able to use .png and .gif and .bmp with many colors before with older versions of ADX... what happened?
Posted 13 Jan, 2010 09:52:43 Top
Andrei Smolin


Add-in Express team


Posts: 17361
Joined: 2006-05-11
Alex,

I'm sorry, I didn't noticed this is a .NET forum. This is a restriction of the command bar system. You have to use 256-color .gif and .jpg.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Jan, 2010 10:56:25 Top
Tanguy COADOUR




Posts: 18
Joined: 2010-01-08
Does anyone has something that really works on several computers?
On my side I got a XP with Outlook 2003 where it is quite ok, on another XP/O2003 PC, I get a blue background for transparency...

Can't find the reason: image and/or settings

Does anyone has a sample (code + image) that works so I can check and compare to my code/image?
I didn't know I could spend so much time on such a problem:
- changing image format (gif, jpg, bmp, 32b, 8b..., alpha transparency or special color for transparency...) : what is the real good format and color depth? on the forum we can read 256 color BMP, above 256 color gif and jpg...
- changing imagelist TransparentColor property,
- changing button ImageTransparentColor property...



Too much possibilities! I'm tired!

I think that a fully working sample(s) would be a great thing for all those like me who can't get it a good display.

Thanks a lot!
Posted 06 Feb, 2010 21:11:09 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Tanguy.

Is the SP3 for Office 2003 installed on the problematic PC?
Posted 10 Feb, 2010 10:16:16 Top