Problems with Image transparent clause

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

Problems with Image transparent clause

Post by Marco Turco »

Hi,
It seems that the image transparent clause doesn't runs well in a oWnd:oWndClient context.

This is a sample code that show the problem:

#include "FiveWin.ch"
#include "Image.ch"

static oWnd,oImage
//----------------------------------------------------------------------------//

function Main()

DEFINE WINDOW oWnd;
TITLE "TEST IMAGE";
color nrgb(0,0,0),nrgb(255,255,255);
MDI

@ 0, 0 IMAGE oImage file "sm_1.bmp" OF oWnd:oWndClient noborder pixel
oImage:lTransparent:=.t.


ACTIVATE WINDOW oWnd MAXIMIZED

return nil

See www.softwarexp.co.uk/beta/testimg.jpg

Full source and executable available at:
www.softwarexp.co.uk/beta/testimg.zip
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Marco, have you tried with another bitmap?
The top-left pixel is important for transparent clause.
Regards,
Otto
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Post by Marco Turco »

Hi Otto,
the problem is not bitmap related but OS related.

The transparent clause work fine in a Vista with a "classic" theme but it doesn't work in a Vista with an "Aero" theme.

How you can see at www.softwarexp.co.uk/beta/classic.jpg
with the "classic" theme the transparent clause has applied.
Best Regards,

Marco Turco
SOFTWARE XP LLP
Post Reply