Problems with Image transparent clause

Problems with Image transparent clause

Postby Marco Turco » Wed Jun 25, 2008 9:18 am

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

Postby Otto » Wed Jun 25, 2008 12:57 pm

Marco, have you tried with another bitmap?
The top-left pixel is important for transparent clause.
Regards,
Otto
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Postby Marco Turco » Wed Jun 25, 2008 3:30 pm

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests