Discussion Board
-
Text with background
2004-09-28, 10:42
#1
Regular Contributor
hi there, does anyone know how to display a text (especially CRichText) with background image?
the harder problem is... the rect for the text is not big but i want the background image to be ApplicationRect
any code will help.
thanks in advance,
Rx-lee
-
Super Contributor
It should be possible using MFormCustomDraw class.
Methods like:
DrawBackground()
DrawLineGraphics()
DrawText()
are defined there and if you override them you should get the desired results...
-
Re: Text with background
2006-04-24, 08:41
#3
Registered User
do it like this:
gc.BitBlt(aRect.iTl, iAreaBitmap);
const CFont* myFont = iEikonEnv->TitleFont();
gc.UseFont(myFont);
gc.DrawText( _L("hi"),TPoint(100,20));
gc.DiscardFont();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules