Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User soni_neeraj's Avatar
    Join Date
    Feb 2008
    Posts
    195
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    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 vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,836
    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 C++
    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. Writing chinese text on emulator
    By TheLittleBird in forum Symbian
    Replies: 1
    Last Post: 2007-06-15, 11:41
  4. Rendering text in multiple languages
    By TheLittleBird in forum Symbian C++
    Replies: 0
    Last Post: 2007-06-05, 12:52
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved