Putting Icons in the listbox

Login to reply to this topic.
Thu, 2006-09-21 08:32
Joined: 2006-09-21
Forum posts: 2
Hello All

I want to put different icons for different items in the single listbox, icons should be displayed according to the conditions for the items. For eg,
G1 for item1
G2 for item2

Please send me some example code(application) for series 60.Please send as soon as possible.

Thanks and Regards
vidya


Thu, 2006-09-21 09:30
Joined: 2005-11-16
Forum posts: 62
Re: Putting Icons in the listbox
you can check the listbox example with the SDK for code snippets..
just go through the SDK docs also...
Thu, 2006-09-21 11:02
Joined: 2006-09-21
Forum posts: 2
Re: Putting Icons in the listbox
I checked there.But only same type of icons are appended to all list items.But I want different Icons for different list items.    For eg, one icon for one item (means G1:contacts) and other icon for another item (means G2: groups)
G=Graphical Icon.
Thu, 2006-09-21 11:42
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: Putting Icons in the listbox
Quote from: vidya11
I checked there.But only same type of icons are appended to all list items.But I want different Icons for different list items.    For eg, one icon for one item (means G1:contacts) and other icon for another item (means G2: groups)
G=Graphical Icon.

ListBox and icon problem

Use the search option in the forum before posting a query.  Grin

Mon, 2008-03-03 08:34
Joined: 2007-06-01
Forum posts: 1
Re: Putting Icons in the listbox

It's here

#define qtn_item_a "0\tAAA"
#define qtn_item_b "1\tBBB"
#define qtn_item_c "2\tCCC"

And must be add three icon image to icon list

aIcons->AppendL( iEikonEnv->CreateIconL( KsmsmMbmFileName, EMbmSmsmMarked_add, EMbmSmsmMarked_add_m ) );//AAAA
aIcons->AppendL( iEikonEnv->CreateIconL( KsmsmMbmFileName, EMbmSmsmMarked_add, EMbmSmsmMarked_add_m ) );//BBBB
aIcons->AppendL( iEikonEnv->CreateIconL( KsmsmMbmFileName, EMbmSmsmMarked_add, EMbmSmsmMarked_add_m ) );//CCCC

Good luck to you^^


XuyenThanhNgo

  • Login to reply to this topic.