This is partially related (I think) to my other post (http://discussion.forum.nokia.com/fo....php?t=76943):
I have a listbox in a Container. I can populate using:
And the listbox is functional with the string 'Item Text Here' showing in the listbox. But when I try to populate via this:
CTextListBoxModel* model = iListBox->model();
CDesCArray* items = STATIC_CAST(CDesCArray*, model->ItemTextArray());
items->AppendL(_L("\tItem Text Here"));
The listbox is also functional in that the data has populated the listbox array but no text is shown in the listbox. They are blank but I can still navigate the items in the list (appears as a hover bar in the emulator), I just can't see any visible text.
CTextListBoxModel* model = iListBox->Model();
MDesCArray* itemList = ((CAppUi*)(ControlEnv()->AppUi()))->QueryDbL();
CDesCArray* itemArray = (CDescArray*) itemList;
Calling the following from the Container shows the data that should be visible on the listbox:
Can anyone shed some light on why the listbox populates with the data and is able to navigate the items. But not show any text?
Thanks for reading this.