The easiest way, is is clear the list and reipopulate it rather than trying to insert or delete particular items. Thats the way I do it anyway. Its clean and simple.
hi..... now i have created the dynamic listbox....when switching from the listbox view to another view .......i need the listbox item name in the next view.........
Forum posts: 183
Thats the way I do it anyway. Its clean and simple.
Regards,
Isseyp
Forum posts: 25
hi.....
now i have created the dynamic listbox....when switching from the listbox view to another view .......i need the listbox item name in the next view.........
how to add image in each listbox item.....
Forum posts: 732
You can use the following code to set the title of a view:
{
CAknTitlePane* titlePane = STATIC_CAST( CAknTitlePane*,
StatusPane()->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
titlePane->SetTextL( aTitleText );
}
Using the following code you will get the current sellected text from a listbox:
{
CTextListBoxModel* model = iListBox->Model();
if(model->NumberOfItems()==0)
{
return KErrNotFound;
}
aResult.Copy(model->ItemText(iListBox->CurrentItemIndex()));
return KErrNone;
}
For that you need to finalise which type of listbox you are planing to use.
Check this link for reference: http://www.newlc.com/article.php3?id_article=136