ScrollBars overlayed with listbox
Hi, all.
I'm using CAknSingle2GraphicPopupMenuStyleListBox for my listbox view. There is scrollbar in it, but it overlayed with listbox. Have you any suggestion how to fix it?
Next code is responsible for listbox view creation:
[CODE]iListBox = new (ELeave) CAknSingle2GraphicPopupMenuStyleListBox;
iListBox->ConstructL(this, EAknListBoxSelectionList);
iListBox->SetContainerWindowL(*this);
iListBox->SetListBoxObserver(this);
iListBox->ItemDrawer()->ColumnData()->SetSkinEnabledL(EFalse);
iListBox->CreateScrollBarFrameL(ETrue);
iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
iListBox->ItemDrawer()->ColumnData()->SetIconArray(CreateIconArrayL());
iItemArray = new (ELeave) CDesCArrayFlat(8);
iListBox->Model()->SetItemTextArray(iItemArray);
iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);[/CODE]
Re: ScrollBars overlayed with listbox
I think that would be normal behaviour, or is it somehow behaving differently than other apps using the listbox ?
Re: ScrollBars overlayed with listbox
Is there any way to avoid it?
Re: ScrollBars overlayed with listbox
CAkn-listboxes are pretty difficult to customize, so I would suggest sticking on the default look & feel.