Later on please make any other changes
- Code: Select all Expand view RUN
#include "FiveWin.ch"
#define TRANSPARENT 1
static oWnd
//----------------------------------------------------------------//
function Main()
local oBmp
local oFntGross
DEFINE FONT oFntGross NAME "VERDANA" SIZE 0,-20 BOLD
DEFINE WINDOW oWnd TITLE "Text on a bitmap"
@ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\fw.bmp" OF oWnd
oBmp:bPainted := { |hDC| OnPaint( hDC, "BOLD TEXT", oFntGross ) }
ACTIVATE WINDOW oWnd
return nil
//----------------------------------------------------------------//
static function OnPaint( hDC, cMsg, oFont )
local hOldFont
hOldFont := SelectObject( hDC, oFont:hFont )
SetBkMode( hDC, TRANSPARENT )
TextOut( hDC, 5, 5, cMsg )
SelectObject( hDC, hOldFont )
return nil