×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    30

    Arrow Changing dynamically font color of text in list box...?

    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
    Join Date
    Nov 2004
    Posts
    153
    iBox->ItemDrawer()->SetHighlightedBackColor(KRgbRed);

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

  3. #3
    Super Contributor
    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
  •  
×