Application
===========
Path and name: I:\__F_SAMPLES\SAMPLES.exe (32 bits)
Size: 4,070,912 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170902)
FiveWin version: FWHX 18.01
C compiler version: Borland/Embarcadero C++ 7.3 (32-bit)
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 6 secs
Error occurred at: 14/02/2018, 19:48:02
Error description: Error BASE/1004 Message not found: TXBROWSE:SAYPALBMP
Stack Calls
===========
Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR( 247 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SAYPALBMP( 10146 )
Called from: .\CODE_1.PRG => SHOWRATING( 651 )
Called from: .\CODE_1.PRG => (b)GRPC1_SEC2( 561 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTCELL( 12843 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA( 12504 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 2028 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY( 1753 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1697 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 10442 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3368 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 296 )
Called from: .\source\function\ERRSYSW.PRG => ERRORDIALOG( 436 )
Called from: .\source\function\ERRSYSW.PRG => (b)ERRORSYS( 23 )
Called from: .\source\function\HARBOUR.PRG => _CLSSETERROR( 247 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SAYPALBMP( 10146 )
Called from: .\CODE_1.PRG => SHOWRATING( 651 )
Called from: .\CODE_1.PRG => (b)GRPC1_SEC2( 561 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTCELL( 12843 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTDATA( 12504 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 2028 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:DISPLAY( 1753 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1697 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 10442 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3368 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 296 )
Called from: .\CODE_1.PRG => DO_CODE( 139 )
Called from: .\SAMPLES.PRG => (b)MAIN( 282 )
I think the release 17.12 detected the alpha channel
FW_DrawImage( Self, { ::hBitmap, ::hPalette, ::nImgWidth, ::nImgHeight }, aRect, ::lTransparent, 1, ::nAlphaLevel )
FW_DrawImage( Self, { ::hBitmap, ::hPalette, ::nImgWidth, ::nImgHeight }, aRect, ::lHasAlpha .or. ::lTransparent, 1, ::nAlphaLevel )
ukoenig wrote:Mr. Rao,
Yes
In 17.12 I just needed to define the image.
I will test it in some samples changing between 17.12 and 18.1
regards
Uwe
// Placing text on top of a bitmap
#include "FiveWin.ch"
#define TRANSPARENT 1
static oWnd
//----------------------------------------------------------------//
function Main()
local oBmp
DEFINE WINDOW oWnd TITLE "Text on a bitmap"
@ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\alphabmp\trash.bmp" OF oWnd
oBmp:bPainted = { || SetBkMode( oBmp:hDC, TRANSPARENT ),;
TextOut( oBmp:hDC, 5, 5, "Hello" ) }
ACTIVATE WINDOW oWnd
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 106 guests