Hi all Bitmap TEXT COLOR ?

Hi all Bitmap TEXT COLOR ?

Postby yunbg1 » Thu Apr 27, 2006 6:39 am

Hi all.

How the bitmap a text color at the at.

Code: Select all  Expand view  RUN

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
yunbg1
 
Posts: 107
Joined: Sun Nov 13, 2005 12:40 am
Location: Winnipeg Canada

Postby Antonio Linares » Thu Apr 27, 2006 7:06 am

Code: Select all  Expand view  RUN
   oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),;
                        SetTextColor( oBmp:hDC, CLR_HRED ),;
                        TextOut( oBmp:hDC, 5, 5, "Hello" ) }
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests