Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Devang Shah's Avatar
    Join Date
    Jan 2005
    Posts
    30
    Hello everyone...


    i have implemented a Double Style Graphics List box in which I want to change the font & color of the text in a specific entry .... different fonts & colors for each entr, but it will be decided dynamically.

    say.........

    ========================
    if condition 1
    use font and color type 1
    else
    use font and color type 2
    ========================

    Thanks in advance
    Devang Shah

    shah_dewang@yahoo.com

  2. #2
    Regular Contributor tripiri's Avatar
    Join Date
    Nov 2004
    Posts
    153
    iBox->ItemDrawer()->SetHighlightedBackColor(KRgbRed);

    Hope this helps...............

  3. #3
    Super Contributor sopta007's Avatar
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    You need to implement custom drawer for your listbox. Using that you can draw to each line whatever you want (warious number of icons, texts, different fonts, backgrounds, etc.)
    Check these classes:
    CTextListItemDrawer
    MTextListBoxModel
    CEikTextListBox

    and methods like:
    CTextListItemDrawer:rawActualItem

    It is not completely easy to figure everything out, but it can be done once you crack the logic behind it..:-)

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