Hi all Bitmap TEXT COLOR ?

Post Reply
yunbg1
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Hi all Bitmap TEXT COLOR ?

Post by yunbg1 »

Hi all.

How the bitmap a text color at the at.

Code: Select all


FUNC main()
   local oBmp

   DEFINE WINDOW oWnd TITLE "Text on a bitmap"

   @ 1, 1 BITMAP oBmp FILENAME "..\bitmaps\fw.bmp" OF oWnd

   oBmp:bPainted = { || SetBkMode( oBmp:hDC, TRANSPARENT ),;
                        TextOut( oBmp:hDC, 5, 5, "Hello" ) }

   //TEXT COLOR ?

   ACTIVATE WINDOW oWnd

RETU NIL

FWH USER....................
FWH User
FWPPC User
FWLinux User
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Code: Select all

   oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),; 
                        SetTextColor( oBmp:hDC, CLR_HRED ),;
                        TextOut( oBmp:hDC, 5, 5, "Hello" ) } 
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply