News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Toolbar background

Started by Grincheux, April 23, 2009, 04:21:14 PM

Previous topic - Next topic

Grincheux

I have drawn a toolbar with many icons.
For the icons background I used the color PINK (00FF00FFh).
When the toolbar is displayed onto the screen, the background colors appears.
How can I remove it ?

The source code for the toolbar can de downloaded at http://www.phrio.biz/download/Editor/Editor.asm and the screen capture is at http://www.phrio.biz/download/Editor/Editor.JPG. I created a zip file with the two at http://www.phrio.biz/download/Editor/Editor.zip

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

hutch--

You have a few more options if you put the toolbar in a rebar control.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

donkey

Looks like you have alpha blended images in the bitmap and they are not being displayed properly. You might try to convert them to non-alpha channel icons first.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Grincheux

In fact, the problem was easy to resolve: I replaced the pink background with a white background.
The result is there : http://www.phrio.biz/download/Editor/Toolbar1.jpg

Thanks for your help.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

RadASM

Your can use MadWizards PNGlib (http://madwizard.org/programming/projects/pnglib) to implement png files as toolbar to your app (i.e. modded with gimp for transparent background.)
Attention: the self extracting exe might throw out an AV error but there's no virus in it. If ppl fear to get a virus on system i'll upload the related pnglib.lib and pnglib.inc for masm32 to my homepage)

By using Gimp, the tutorial to generate transparent backgrounds is: http://technewsline.net/gimp-tutorial-making-transparent-background-image/

I tested it on "test-department tutorial 20" and it worked.

Hope this helps,
WinAsmFreak

Grincheux

You are TRUE and I am stupid! Because all the icons were PNG files! A lot of work for nothing!

I am going to download the library.
This will be useful for the second toolbar. This will be a lesson for me!

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz