To enable marquee with the animated effect (auto-scrolling forward and backward on the focused item) in the ListBox, you need to add the following code.

enable marquee with the animated  in the ListBox

Column cell listbox (for example CAknSingleStyleListBox):

iListBox->ItemDrawer()->ColumnData()->SetMarqueeParams (3, 20, 1000000, 200000);
iListBox->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);

Formatted cell listbox (for example CAknDoubleStyleListBox):

iListBox->ItemDrawer()->FormattedCellData()->SetMarqueeParams(3, 20, 1000000, 200000);
iListBox->ItemDrawer()->FormattedCellData()->EnableMarqueeL(ETrue);

相关文章: