×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    how to change the color of listBox

    Thanks a lot.
    Last edited by liuxingyu_best; 2009-01-06 at 11:22.

  2. #2
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    62

    Re: how to change the color of listBox

    Hi,

    CEikColumnListBox * CAknSingleNumStyleListBox4;
    TRgb itxtcolor;
    TRgb iHighlightedTextColor;
    TRgb iBackgroundColor;

    in your container Add this:
    in ConstructL()
    {

    iBackgroundColor= TRgb(0,0,0);
    iHighlightedTextColor = TRgb(255,255,255);
    itxtcolor = TRgb(207,124,41);



    CAknSingleNumStyleListBox4->ItemDrawer()->SetTextColor(itxtcolor);
    CAknSingleNumStyleListBox4->ItemDrawer()->SetBackColor(iBackgroundColor);
    CAknSingleNumStyleListBox4->ItemDrawer()->SetHighlightedTextColor(iHighlightedTextColor);
    }

    Regards,
    Ragini

  3. #3
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    153

    Re: how to change the color of listBox

    I believe CAkn*StyleListBox->ItemDrawer()->SetBackColor() should do the trick
    S60 Rocks!!!

Similar Threads

  1. How to change listbox to be a multiselection listbox
    By miqitangguo in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-05-05, 05:16
  2. how to change the color of the Highlight item in the listbox
    By RaveendraB in forum Symbian User Interface
    Replies: 8
    Last Post: 2008-02-28, 17:49
  3. Change icon in listbox
    By ninidotnet in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-10-12, 02:57
  4. Change font colour in listbox
    By ninidotnet in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-08-28, 05:33
  5. Change color of listbox item
    By anoopd in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-03-09, 08:33

Posting Permissions

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