transparent toolbarbuttons,please help!
-
i made a toolbar, that has a gradient effect (as in office2003) but now, the toolbaricons who are on the toolbar do not look cool on the gradientbackground, because they are not transparent! that means i still see the gray color who surrounds the symbols. any idea how to solve this problem??? i really read a lot about the topic, but found no solution! i also would manage to change this gray color to any other color (set it as background color) but this does not help me, because my background has no fix color, its a gradient! thanx for any help!!!! andreas
-
i made a toolbar, that has a gradient effect (as in office2003) but now, the toolbaricons who are on the toolbar do not look cool on the gradientbackground, because they are not transparent! that means i still see the gray color who surrounds the symbols. any idea how to solve this problem??? i really read a lot about the topic, but found no solution! i also would manage to change this gray color to any other color (set it as background color) but this does not help me, because my background has no fix color, its a gradient! thanx for any help!!!! andreas
Have a look at this article: http://www.codeproject.com/docking/bitmaptoolbar.asp[^] Here you can define a RGB color which will be used as transparency mask. -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) -
Have a look at this article: http://www.codeproject.com/docking/bitmaptoolbar.asp[^] Here you can define a RGB color which will be used as transparency mask. -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;)hy, thanx for the link, unfortunately, when i compile this project and run it, the icons are not transparent, it looks excactly as in the project i worked. i work with .NET2003 may this be the problem?
-
hy, thanx for the link, unfortunately, when i compile this project and run it, the icons are not transparent, it looks excactly as in the project i worked. i work with .NET2003 may this be the problem?
it was the maskcolor, now i changed it to RGB(192,192,192) and now it workes!
-
it was the maskcolor, now i changed it to RGB(192,192,192) and now it workes!
the code looks very complicated to me, isnt there a simpler solution for making a bitmap transparent?? i cant use this code!