×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Text color problem

    Hi All,
    I want to drawing a textstring onto screen. suppose string is "you are the best". string is drawing properly but i want to color "are" as a white and remaining text is black. so tell me how i will do it.

    regards
    Neeraj

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Text color problem

    write it in sections, and change the text color between writings. Also you can use the functions provided by the CFont to determine how much each text section takes pixels..

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,086

    Re: Text color problem

    try using :
    CWindowsGc::SetPenColor()
    and then draw your text

    again set the pen color and draw text..likewise for all the words in your sentence.

Similar Threads

  1. Setting list ( Enum Text Example)
    By sid_diu in forum Symbian
    Replies: 2
    Last Post: 2009-07-02, 12:09
  2. Exit form from edit mode
    By tqchcm in forum Symbian User Interface
    Replies: 13
    Last Post: 2007-10-31, 06:06
  3. Rendering text in multiple languages
    By TheLittleBird in forum Symbian
    Replies: 0
    Last Post: 2007-06-05, 12:52
  4. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×