Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to add Marquee effect in ListBox

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: User:Kanu123 (30 Jun 2007)
Last edited: hamishwillee (30 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 30 May 2013, at 04:38.
57 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×