ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   BMPS stored in a Resource Editor File (https://www.excelbanter.com/excel-programming/374982-bmps-stored-resource-editor-file.html)

[email protected]

BMPS stored in a Resource Editor File
 
HI,

I have a resource editor file in VB6 which contains BMP images used by
the Excel Add-in to create toolbar buttons. I have created a public
function in my VB application which pulls the required image from the
Resource Editor and passes it on to the Excel Add-In and using the
PasteFace method I paste it on the toolbar button.

The problem with the BMPs stored in the resource editor is that they
are not transparent (they are not suppose to be !), but I want them to
be transparent. The other methods I have discovered so far are not
working for me due to the Resource Editor issue which I can't bypass at
all. Its the requirement of my application.

Any Ideas ???

Thanks in advance.

- krshaikh -


NickHK

BMPS stored in a Resource Editor File
 
Depends what you are doing, but may be TransparentBlt
http://vbnet.mvps.org/index.html?cod...ransparent.htm

But sounds like the .Mask property of the commandbar may suit you.
Look at the example in Help.

NickHK

wrote in message
ps.com...
HI,

I have a resource editor file in VB6 which contains BMP images used by
the Excel Add-in to create toolbar buttons. I have created a public
function in my VB application which pulls the required image from the
Resource Editor and passes it on to the Excel Add-In and using the
PasteFace method I paste it on the toolbar button.

The problem with the BMPs stored in the resource editor is that they
are not transparent (they are not suppose to be !), but I want them to
be transparent. The other methods I have discovered so far are not
working for me due to the Resource Editor issue which I can't bypass at
all. Its the requirement of my application.

Any Ideas ???

Thanks in advance.

- krshaikh -





All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com