Transparent Button Bitmap 
Author Message
 Transparent Button Bitmap

Im programming an application that is suppost to have standard
audio-function buttons with proper images on them, like an arrow for play, a
box for stop and so on...
I paint them using the rescource editor of VS. The problem is that when i
change the color of the desktop in windows the empty parts of the button
images differs from the color of the desktop.
I need to make the empty parts transpernt.

Now, Is there a way for me to paint transperency in the rescource editor
(with bitmaps) or is there a way to tell the bitmap-display function to make
a certain color transparent when the bitmap is displayed?

/ Tobias



Mon, 09 Jul 2001 03:00:00 GMT  
 Transparent Button Bitmap

Quote:
>I need to make the empty parts transpernt.

>Now, Is there a way for me to paint transperency in the rescource editor
>(with bitmaps) or is there a way to tell the bitmap-display function to make
>a certain color transparent when the bitmap is displayed?

Tobias,

Use the BS_ICON style instead of a bitmap. Icons support transparency,
and it's all done for you.

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Tue, 10 Jul 2001 03:00:00 GMT  
 Transparent Button Bitmap
use the Cimagelist class it supports transparent bitmaps

Zed

Quote:

>>>I need to make the empty parts transpernt.

>>>Now, Is there a way for me to paint transperency in the rescource editor
>>>(with bitmaps) or is there a way to tell the bitmap-display function to
>make
>>>a certain color transparent when the bitmap is displayed?



Tue, 10 Jul 2001 03:00:00 GMT  
 Transparent Button Bitmap
NOT TRUE!

You can use the Custom button in the new icon dialog to set any
dimensions you want and to use 2,16, or 256 colors.

On Sat, 23 Jan 1999 09:03:51 +0100, "Niels Hede Pedersen"

Quote:

>The problem with icons is that you can't use any odd size you want, and you
>are limited to 16 colors. See the LoadMappedBitmap function to use a mask to
>mask out the parts of the bitmap you want to be transparent.

>regards, Niels


>>>I need to make the empty parts transpernt.

>>>Now, Is there a way for me to paint transperency in the rescource editor
>>>(with bitmaps) or is there a way to tell the bitmap-display function to
>make
>>>a certain color transparent when the bitmap is displayed?

>>Tobias,

>>Use the BS_ICON style instead of a bitmap. Icons support transparency,
>>and it's all done for you.

>>Dave
>>----
>>My address is altered to discourage junk mail.
>>Please post responses to the newsgroup thread,
>>there's no need for follow-up email copies.

Don Grasberger
(remove --- from address to e-mail)


Tue, 10 Jul 2001 03:00:00 GMT  
 Transparent Button Bitmap
The problem with icons is that you can't use any odd size you want, and you
are limited to 16 colors. See the LoadMappedBitmap function to use a mask to
mask out the parts of the bitmap you want to be transparent.

regards, Niels

Quote:

>>I need to make the empty parts transpernt.

>>Now, Is there a way for me to paint transperency in the rescource editor
>>(with bitmaps) or is there a way to tell the bitmap-display function to
make
>>a certain color transparent when the bitmap is displayed?

>Tobias,

>Use the BS_ICON style instead of a bitmap. Icons support transparency,
>and it's all done for you.

>Dave
>----
>My address is altered to discourage junk mail.
>Please post responses to the newsgroup thread,
>there's no need for follow-up email copies.



Wed, 11 Jul 2001 03:00:00 GMT  
 Transparent Button Bitmap

Quote:
>The problem with icons is that you can't use any odd size you want,

Niels,

You can - you need to use LoadImage rather than LoadIcon.

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Wed, 11 Jul 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. transparent bitmap on toolbar button

2. How to implement TRANSPARENT Bitmap Buttons

3. How to display Transparent Bitmap Button?

4. how to shape a button to a 24bit bitmap which delete the transparent region and

5. Transparent Bitmap Buttons

6. Transparent Bitmap buttons

7. How to implement TRANSPARENT Bitmap Buttons

8. Transparent Owner Drawn Bitmap Button

9. Transparent Bitmap Buttons ?

10. Disabling Bitmap Button loses bitmap

11. Bitmap buttons to behave like radio buttons?

12. transparent bitmap

 

 
Powered by phpBB® Forum Software