Transparent bitmap on folder

Post Reply
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Transparent bitmap on folder

Post by Marco Turco »

Hello,
I still have problem to display a transparent bitmap on folder with xp theme. See www.softwarexp.co.uk/beta/bitmap_on_folder.gif

I'm working with xHarbor 0.99.5+FWH26

Is there a solution available ?

Thanks in advance

Marco Turco
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marco,

Have you tried oBmp:lTransparent := .t. after creating it ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Post by Marco Turco »

Yes I used the transparent clause in the sample you saw.

This problem appairs only on folder with xp theme,
without xp theme the transparent clause runs fine.

We had a similar problem with the say on folder
but you alredy solved this some time ago.

Marco
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marco,

The problems comes from the gradient background where the bitmap is painted on.

FWH already provides a special function to paint transparent on gradient background:

Code: Select all

void TransBmp( HBITMAP hBitmap, int iXsize, int iYsize,
               COLORREF rgbTransparent, HDC hDC,
               int iXOffset, int iYOffset, int iWidth, int iHeight )
source is located at source\function\fwbmp.c. The problem is that we don't know why yet, this function looses GDI resources. We have been trying several times to find whats going wrong with it, but with no luck up to now.

If we could fix it, then we could easily paint transparent over a gradient background.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Yes, I think the same but the fact is that if we use it, and you start resizing the main window, then you can see how it gets slower, as it were consuming more and more resources.

The code is there, so it may be used, but with caution until we know for sure if it is working ok.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Might it be that it keeps called by the paint event when it haven't already terminated the previous execution?

Only a stub in the dark.

EMG
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Its a good idea, thank you :)

Lets check it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

We already have transparent bitmaps on folders with XP look :)

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply