×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    3

    How to show different icons in the CEikColumnListBox items?

    HI,
    I need to show different icon (read from SKIN) for each item in the ListBox. I am appending different icon into CArrayPtr<CGulIcon>* icons and calling aListBox->ItemDrawer()->FormattedCellData()->SetIconArrayL( icons );

    But it is showing same icon for all list box items.

    My code here:
    CArrayPtr<CGulIcon>* icons = new( ELeave ) CAknIconArray(10);
    CleanupStack::PushL( icons );
    icons->AppendL(...);
    icons->AppendL(...);
    aListBox->ItemDrawer()->FormattedCellData()->SetIconArrayL( icons );
    CleanupStack::Pop();

    Is there something else should i do for displaying different icons?
    Thanks
    -sarath

  2. #2
    Registered User
    Join Date
    Feb 2007
    Posts
    3

    Re: How to show different icons in the CEikColumnListBox items?

    I have found it now

    In application LOC file, i defined index of an icon for particular text.

    #define qtn_ListBox_item_1 "0\tItem 1\t"
    #define qtn_ListBox_item_2 "1\tItem 2\t"

    0, 1 and 2 are index of icons array...

Similar Threads

  1. is it possible to show icons for cascade menu items in the form.
    By rajani_sp1 in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-02-25, 11:39
  2. Items of CEikColumnListBox don't show properly
    By -janine in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-08-28, 19:32
  3. Replies: 1
    Last Post: 2003-09-18, 06:58
  4. Different icons for different items in the listbox.
    By ashbhatia in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-10-29, 02:45

Posting Permissions

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