Page 1 of 1
FWH 8.07: Dialog transparency using bitmaps (not brushes!)
Posted: Wed Jul 30, 2008 8:53 pm
by Antonio Linares
It requires a new FWH 8.07 build that will be published in some minutes:
Code: Select all
#include "FiveWin.ch"
function Main()
local oDlg, oRad, nVal := 1, oCbx, lVal := .T., oGrp
local hBmp := ReadBitmap( 0, "rainbow.bmp" )
DEFINE DIALOG oDlg RESOURCE "Test" TRANSPARENT
REDEFINE RADIO oRad VAR nVal ID 10 OF oDlg
REDEFINE CHECKBOX oCbx VAR lVal ID 20 OF oDlg
REDEFINE GROUP oGrp ID 30 OF oDlg
REDEFINE BUTTON ID 1 OF oDlg ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED ;
ON PAINT DrawBitmap( hDC, hBmp, 0, 0, oDlg:nWidth, oDlg:nHeight )
DeleteObject( hBmp )
return nil
Files and EXE:
http://www.mediafire.com/?hzjnrb4lttd
Posted: Thu Jul 31, 2008 2:01 am
by RAMESHBABU
Hello Mr.Antonio
The following is the result I am getting in Win98 with FWH 2.7
The controls are not painted transparent.
- Ramesh Babu P
Posted: Thu Jul 31, 2008 2:20 am
by Rick Lipkin
Antonio
I know this may be a Windows limitation .. is there any way we can use .jpg as images instead of .bmp ?? .. ( without freeimage.dll )
Reason I ask is I distribute my applications over our WAN and pulling bitmaps over anything less than a t1 is 'brutal' .. especially if you use a hi-rez bitmap that may be mgbytes in size ??
Just curious ..
Rick Lipkin
SC Dept of Health, USA
Posted: Thu Jul 31, 2008 3:29 am
by Armando
Antonio:
And this image is what I get with your sample (test.exe) in windows xp sp3
Best regards
Posted: Thu Jul 31, 2008 7:18 am
by Antonio Linares
Ramesh, Armando,
You need FWH 8.07 in order to get it properly working.
It is a FWH 8.07 new feature
Posted: Thu Jul 31, 2008 7:20 am
by Antonio Linares
Rick,
Yes, we may be able to get rid of FreeImage.dll soon
Posted: Thu Jul 31, 2008 7:49 am
by RAMESHBABU
Hello Mr.Antonio
Just I have downloaded 8.07 from FWH and built the EXE and tested. Still I am getting the same result in WIN98. I have not tested in XP.
FIVEHX.LIB size 1,623,040 Bytes - 07-27-08 : 9.05a
- Ramesh Babu P
Posted: Thu Jul 31, 2008 8:17 am
by Antonio Linares
Ramesh,
We have not published yet the new 8.07 build. We will do it this same morning.
Posted: Thu Jul 31, 2008 8:55 am
by Antonio Linares
The new FWH 8.07 is already available.
Please download it again, thanks
Posted: Thu Jul 31, 2008 1:20 pm
by RAMESHBABU
Hello Mr.Antonio
I am sorry!. Same old result even after downloding the very latest bulid.
I have tested this in WIN98 (Not tested yet in XP/VISTA)
FIVEHX.LIB 1,746,432 Bytes 07-31-08 5:43.p
- Ramesh Babu P
Posted: Thu Jul 31, 2008 1:29 pm
by Antonio Linares
Ramesh, Armando,
Yes, its a different behavior in XP and Vista.
We have tested it in Vista and works fine, but we have also confirmed that XP is failing. We are doing research right now to find a workaround for XP.
Posted: Sun Aug 03, 2008 6:13 pm
by RAMESHBABU
Hello Mr.Antonio,
We are doing research right now to find a workaround for XP.
Is there any sucess ? BTW please look for solution for WIN98 also.
- Ramesh Babu P
Posted: Sun Aug 03, 2008 7:06 pm
by Antonio Linares
Ramesh,
No, no success. And we have done lots of different tests.
It works fine on Vista, and it does not work on XP.
The only solution for now is to keep using brushes.