Namespaces
Variants
Actions

How to add Marquee effect in ListBox

Jump to: navigation, search
Article Metadata

Code Example
Article
Created: User:Kanu123 (30 Jun 2007)
Last edited: hamishwillee (08 May 2013)

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.


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);

Full example (S60 3rd Edition): Wckbyqpb(MarqueeListbox).zip

Related Links:

This page was last modified on 8 May 2013, at 03:00.
204 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved