Hi,
this code creates an multi selection list box. WHY ?
void CtestAppView::ConstructL( const TRect& aRect )
{
// Create a window for this application view
CreateWindowL();
iListBox = new (ELeave) CAknSingleNumberStyleListBox;
iListBox->ConstructL( this, EAknListBoxSelectionList);
iListBox->SetContainerWindowL(*this);
SetRect(aRect);
iListBox->CreateScrollBarFrameL(ETrue);
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
MDesCArray* itemList = iListBox->Model()->ItemTextArray();
CDesCArray* itemArray = (CDesCArray*) itemList;
itemArray->AppendL(_L(" aaa"));
itemArray->AppendL(_L(" bbb"));
itemArray->AppendL(_L(" ccc"));
itemArray->AppendL(_L(" ddd"));
itemArray->AppendL(_L(" aaa"));
iListBox->HandleItemAdditionL();
iListBox->SetRect(aRect.Size());
ActivateL();
}
While scrolling all items stay selected.
New items at the bottom of the list draw its text over the existing items
in the visible area of the list box.
This error appears in all list box types.
Whats wrong ???
best regards




