Discussion Board

Results 1 to 5 of 5
  1. #1
    hi,
    i am trying to disign CAknSingleGraphicStyleListBox example. Here i im reding list from array. i want output as icon and content of listbox. The code i written is

    void CMyAppContainer::InitListBoxL()
    {
    // construct listbox item array
    CDesCArray *itemList = new (ELeave) CDesCArrayFlat(5);
    itemList->AppendL(_L("0\tFirst item\t"));
    itemList->AppendL(_L("1\tSecond item\t"));
    itemList->AppendL(_L("2\tThird item\t"));
    itemList->AppendL(_L("3\tFourth item\t"));

    // set items and ownership
    iListBox->Model()->SetItemTextArray(itemList);
    iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);
    iListBox->SetCurrentItemIndex(0);
    //iListBox->SetFocus(ETrue);
    iListBox->HandleItemAdditionL();

    here its not giving icon. But if i give formate like
    itemList->AppendL(_L("\tFirst item\t1"));
    Then its giving icon at right side.
    Please do you have solution for this problem???

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,840
    have a look in sdk for singlegraphicstyle listbox its pattern is :

    "0\tTextLabel\t1\t2" where 0,1,2 are index to the icon array

  3. #3
    Regular Contributor aficianado_001's Avatar
    Join Date
    Aug 2005
    Location
    India
    Posts
    399
    Search wiki examples for implementing listbox. you can use Carbide UI designer (will create code for your design) to understand various listbox's designs.

  4. #4
    thanks for helpimg me. i got solution for it.

  5. #5
    Thanks aficianado_001 for helping me. I got solution for it.

Similar Threads

  1. EikCTL 42 Panic Error while creating ListBox (v2)
    By dotice in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-03-07, 06:02
  2. Findbox with graphic listbox problem (wrong filtering)
    By yavolinsky in forum Symbian C++
    Replies: 2
    Last Post: 2007-04-05, 06:22
  3. simple listbox problem
    By Symbian_Neil in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2007-04-03, 13:34
  4. listbox problem
    By nicholasgaye in forum Symbian User Interface
    Replies: 9
    Last Post: 2005-03-31, 14:57
  5. Problem with bldmake bldfiles for Series 60 SDK 6.1
    By dml in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 1970-01-01, 02:00

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