FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problems with Image transparent clause
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Problems with Image transparent clause
Posted: Wed Jun 25, 2008 09: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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Problems with Image transparent clause
Posted: 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

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Problems with Image transparent clause
Posted: Wed Jun 25, 2008 03: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

Continue the discussion