Hi,
I have created a List. It is showing me the empty List.
Even if I have written the code for filling the list.
Please Help me
Hi,
I have created a List. It is showing me the empty List.
Even if I have written the code for filling the list.
Please Help me
show what you have written
Ok.
Look this is my code I have written in InitializeControls()
iList1=new (ELeave) CAknSingleLargeStyleListBox;
iList1->ConstructL(this,EAknListBoxSelectionList);
iList1->SetContainerWindowL(*this);
CDesCArray *itemList = new (ELeave) CDesCArrayFlat(2);
itemList->AppendL(_L("\tFirst item\t\t"));
itemList->AppendL(_L("\tSecond item\t\t"));
itemList->AppendL(_L("\tThird item\t\t"));
//set items and ownership
iList1->Model()->SetItemTextArray(itemList);
iList1->Model()->SetOwnershipType(ELbmOwnsItemArray);
iList1->SetCurrentItemIndex(0);
iList1->SetFocus(ETrue);
iList1->HandleItemAdditionL();
iList1->ActivateL();
ActivateL();
If u want more code tell me
check out this:http://wiki.forum.nokia.com/index.ph...simple_listbox
Thanks for suggetion but i got the answer properly.