I have created a custom listbox by deriving from CAknDoubleGraphicStyleListBox.
I can add items to this in the Constructor of the AppView class, by appending items to iListBox->Model()->ItemTextArray(), and then calling iListBox->HandleItemAdditonL();
However, I also want to be able to add items to the listbox, depending on keypress. So inside the OfferKeyEventL method, I am trying to do exactly the same thing as above.
If I then count the number of items in the ItemTextArray, the new item has been appended, but if I call iListBox->Model()->NumberOfItems() - the new item has not been added to the ListBox.
Do I need some custom implementation of the HandleItemAdditionL method in the CustomListBox class? Any ideas what I might be doing wrong?
Thanks for your help