Dear Mr.Rao,
Your example is working fine. ie it is showing alphabmp's on a Button, unfortunately the same AlphaBMP available in the exe is not displayed on a BITMAP control.
The problem is only when I use Borland Resource compiler. It is working fine with PellesC Resource compiler.
I made a very minor modification in the sample prg which you already posted.
If I use PellesC Resource Compiler, then in the RC file Instead of
I will have to use the following line.
With the above said changes in the .RC file, PellesC displays the AlphaBMP's perfectly on the Button as well as the Bitmap control.
Borland Resource compiler displays the BMP only on the Button and not on the Bitmap control
Can you please test it at your end.
Regards
Anser
Your example is working fine. ie it is showing alphabmp's on a Button, unfortunately the same AlphaBMP available in the exe is not displayed on a BITMAP control.
The problem is only when I use Borland Resource compiler. It is working fine with PellesC Resource compiler.
I made a very minor modification in the sample prg which you already posted.
// I Included an action for the first button in the ButtonBar
DEFINE BUTTON OF oBar RESOURCE "EXPLORER" PROMPT "Explorer AlphaBmp" GROUP ACTION Test()
//-----------------------//
Function Test()
Local oDlg,oBmp
DEFINE DIALOG oDlg FROM 10,20 to 27,70 TITLE "Login"
// Here I have used the same Resource AplhaBmp 'Explorer', unfortunately the image is not displayed
@ 1.5, 7.5 BITMAP oBmp RESOURCE "EXPLORER" NOBORDER OF oDlg
ACTIVATE DIALOG oDlg CENTERED
Return NILIf I use PellesC Resource Compiler, then in the RC file Instead of
#define ALPHABMP 10
EXPLORER ALPHABMP "\fwh\bitmaps\alphabmp\explorer.bmp"I will have to use the following line.
EXPLORER BITMAP "/fwh/bitmaps/alphabmp/explorer.bmp"With the above said changes in the .RC file, PellesC displays the AlphaBMP's perfectly on the Button as well as the Bitmap control.
Borland Resource compiler displays the BMP only on the Button and not on the Bitmap control
Can you please test it at your end.
Regards
Anser