Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User hubbabubba's Avatar
    Join Date
    Jul 2006
    Posts
    9
    I have a custom listbox derived from CAknSingleGraphicPopupMenuStyleListBox. I need to set background color for the listbox.

    I wrote own item drawer. In DrawActualItem() I just draw the background rectangle with the preferred color and then call base class to do the rest. (CFormattedCellListBoxItemDrawer:rawActualItem() ). Btw, it's necessary to call first iList->ItemDrawer()->FormattedCellData()->SetDrawBackground( EFalse ).

    It looks ALMOST ok. The problem is that the each item text looks like it's been drawn twice, with difference of one or two pixels. The effect is a bit like "bold".

    And one more thing. I have marquee on. When a too long item is selected, its text suddenly appears perfectly ok. As long as it's selected.

    Is there a way to change the background color without writing own itemDrawer? iList->ItemDrawer()->SetBackColor(backColor) seems to have no effect as it's been often pointed out in this forum. Or has someone been able to set the background color with SetBackColor()?

    HB

  2. #2
    Regular Contributor gigglie's Avatar
    Join Date
    Mar 2007
    Posts
    235
    Hi HubbaBubba can you share the code ?

  3. #3
    Registered User inxstech's Avatar
    Join Date
    May 2008
    Posts
    28
    In listbox, marque is on.. the selected item overwrites the background text color... so there is any possibility for changing the background color when the item is selected

    regds
    Vijay

Similar Threads

  1. skin not displayed in custom listbox....
    By Neelakantan in forum Symbian User Interface
    Replies: 10
    Last Post: 2010-06-20, 09:14
  2. Skin background in custom control
    By template60 in forum Symbian User Interface
    Replies: 9
    Last Post: 2008-03-25, 11:47
  3. [ListBox] Change Background Image of ListBox
    By lsword0112 in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-03-31, 08:53
  4. Custom Edwin Background
    By digitaltejas in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-06-13, 12:47
  5. Replies: 2
    Last Post: 2005-06-08, 09:58

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