×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130

    Text with background

    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

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    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...

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    25

    Re: Text with background

    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
  •  
×