×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    91

    Different icons for different items in the listbox.

    Hello,

    I am able to put graphical icon before an item in the listbox. Now my application requires me to put different icons for different items in the listbox based on the nature of the item.

    Can anyone guide me how can I put different icons for different items.

    Thanx
    Ashish

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    RE: Different icons for different items in the listbox.

    Hi,

    you put all icons you want to use in CAknIconArray,

    and then in your application LOC file, you define index
    of an icon for particular text.

    example:

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

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

    hope it help.... :)

Posting Permissions

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