Bitmap TextOut Font

Bitmap TextOut Font

Postby Dave Zowasky » Sat Jun 17, 2006 2:25 pm

Hello All,

Is there a way to control or set the text font being used in the
TextOut when I use it with a transparent bitmap?

Thanks
Dave Zowasky
Com1 Software, Inc.
http://www.com1software.com
information@com1software.com
330 653-3771
User avatar
Dave Zowasky
 
Posts: 125
Joined: Wed Oct 19, 2005 2:28 pm
Location: Hudson Ohio

Re: Bitmap TextOut Font

Postby Enrico Maria Giordano » Sat Jun 17, 2006 2:51 pm

Try something like

Code: Select all  Expand view
oBmp:GetDC()
hOldFont = SelectObject( oBmp:hDC, oFont:hFont )
TextOut( ... )
SelectObject( oBmp:hDC, hOldFont )
oBmp:ReleaseDC()


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Dave Zowasky » Sat Jun 17, 2006 3:45 pm

That works perfect.

Thanks Much for your help!!

:D
Dave Zowasky
Com1 Software, Inc.
http://www.com1software.com
information@com1software.com
330 653-3771
User avatar
Dave Zowasky
 
Posts: 125
Joined: Wed Oct 19, 2005 2:28 pm
Location: Hudson Ohio


Return to FiveWin for Harbour/xHarbour

Who is online

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