FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour alpha bitmap in resources
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
alpha bitmap in resources
Posted: Fri Apr 17, 2009 06:04 AM

Can I use alpha bmp in my "rc" file with BCC 5.5 ?
If I try to compile the sample "buildx.bat testbutn" it makes:
"Error testbutn.RC 11 15: Invalid bitmap format"
May be I do something wrong?

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: alpha bitmap in resources
Posted: Fri Apr 17, 2009 07:01 AM
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: alpha bitmap in resources
Posted: Fri Apr 17, 2009 07:54 AM

Thanks a lot Mr Daniel!
I don't know Spanish, but if I understand right, I can use alphabmp in "rc" only with Microsoft rc.exe.
Thanks again!

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: alpha bitmap in resources
Posted: Fri Apr 17, 2009 09:06 AM

Sergey,

> I can use alphabmp in "rc" only with Microsoft rc.exe

You can also use it with Borland brc32.exe if you specify ALPHABITMAP instead of BITMAP in the RC file:

button ALPHABITMAP "button.bmp"

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: alpha bitmap in resources
Posted: Fri Apr 17, 2009 09:44 AM
Mr Antonio, I already tried this way, but if I make this changes in testbutn.rc:
Code (fw): Select all Collapse
button ALPHABITMAP "../bitmaps/AlphaBmp/visa.bmp"

testbutn.exe builds without errors, but visa.bmp isn't paints on button...
Anyway, Thank you for help, with MC "rc.exe" everything work very well !
Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: alpha bitmap in resources
Posted: Fri Apr 17, 2009 12:16 PM
testbutn.exe builds without errors, but visa.bmp isn't paints on button...
Anyway, Thank you for help, with MC "rc.exe" everything work very well !


I Agree with Mr.Loach,

If in .RC file, AlphaBmp is specified as ALPHABITMAP then Borland Resource compiler compiles Alpha BMP's without errors, but the image will not be displayed in the FWH App.

When I checked the .Res file using PellesC, it seems that the Alpha BMP is treated as unknown/other

But if I use PellesC Resource Compiler then everything is working fine.

Regards

Anser

Continue the discussion