Rick Lipkin wrote:If you use 32 bit bitmaps they will not compile into your .exe via .rc .. at least not with Borland. The only way I get alpha channel bitmaps to burn into my .exe is to save as 24 bit in my .rc or reference the 32 bit bitmap as a ( external ) file.
@Echo Off
rem RC file to 32 bits resources DLL
rem syntax: rc2dll32.bat Your_rc_file !!! without the .RC extension
DEL SaW32.DLL
DEL SaW32.RC
DEL SaW32.RES
COPY *.RC SaW32.RC
C:\BORLAND\BCC582\BIN\brc32 -r %1.rc
del *.iL?
del *.map
del *.obj
del *.~rc
del *.rws
:del *.res
del *.tds
echo done!
#include "fivewin.ch"
function Main()
local oDlg, oFont, oImage
local cName := PadR( "FiveWin", 50 )
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-16 BOLD
DEFINE DIALOG oDlg SIZE 400,350 PIXEL FONT oFont STYLE WS_POPUP
@ 20,68 IMAGE oImage FILE "c:\fwh\bitmaps\AlphaBmp\trash.bmp" SIZE 64,64 PIXEL OF oDlg NOBORDER
@ 100,00 SAY "TRANSPARENT DIALOG" SIZE 200,12 PIXEL OF oDlg COLOR CLR_BLACK,CLR_WHITE CENTERED
@ 112,00 SAY "Enter Your Name:" SIZE 200,12 PIXEL OF oDlg COLOR CLR_BLACK,CLR_WHITE CENTERED
@ 130,10 GET cName SIZE 180,16 PIXEL OF oDlg
@ 150,60 BUTTON "Close" SIZE 80,20 PIXEL OF oDlg ACTION oDlg:End()
oDlg:nSeeThroClr := oDlg:nClrPane
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil
Rick Lipkin wrote:I just sent you a 24 bit and a 32 bit alpha chanel bitmaps. Let me know if you have the same results.
Enrico Maria Giordano wrote:Rick,Rick Lipkin wrote:I just sent you a 24 bit and a 32 bit alpha chanel bitmaps. Let me know if you have the same results.
Yes. It looks like brc32 is not compatible with 32 bit bitmaps. And unfortunately it hasn't been updated even in the latest BCC 6.90 (it's the same version 5.40).
EMG
nageswaragunupudi wrote:I am using Pelles to save as res files and linking them
mastintin wrote:use rc.exe from microsoft ... 2 files -+ 500kb. ...
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 48 guests