Transparent bitmap on folder

Transparent bitmap on folder

Postby Marco Turco » Wed Dec 14, 2005 8:19 am

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
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Antonio Linares » Wed Dec 14, 2005 8:23 am

Marco,

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

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

Postby Marco Turco » Wed Dec 14, 2005 9:21 am

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
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Antonio Linares » Wed Dec 14, 2005 11:29 am

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  Expand view  RUN
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: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Wed Dec 14, 2005 1:04 pm

I can't see anything wrong in the TransBmp() source code...

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Dec 14, 2005 1:07 pm

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
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Wed Dec 14, 2005 1:13 pm

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
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Dec 14, 2005 1:50 pm

Enrico,

Its a good idea, thank you :)

Lets check it...
regards, saludos

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

Postby Antonio Linares » Thu Dec 15, 2005 11:55 am

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

Image
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests