Symbian
Symbian OS Library

FAQ-1081 Why does my list box not update after adding or removing an item ?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: UIKON
Created: 06/24/2004 Modified: 06/24/2004
Number: FAQ-1081
Platform: Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0

Question:
When I add or remove and item to the text array in my list dialog then call DrawNow() the dialog is not updated and does not reflect the addition or removal.

Answer:
There are two methods in the class CEikListBox::HandleItemAdditionL() and HandleItemRemovalL() that need to be called after an addition or removal to ensure the list dialog is updated correctly.

    After adding or removing an item call the relevant method before calling DrawNow() to ensure the list dialog updates itself with the change.