如何给ListBox添加滚动效果

来源:互联网 发布:三味线淘宝 编辑:程序博客网 时间:2024/06/08 18:04

How to add Marquee effect in ListBox

                                                                      如何给ListBox添加滚动效果

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.

为了给ListBox添加滚动的动画效果(当焦点定在某一项时,文字可以自动向前或向后滚动),需要添加以下代码:

可以将下面的代码放在对应容器类的InitializeControlsL()方法中:

iListBox->ItemDrawer()->ColumnData()->SetMarqueeParams (3, 20, 1000000, 200000);
 iListBox->ItemDrawer()->ColumnData()->EnableMarqueeL(ETrue);
 
源贴:http://wiki.forum.nokia.com/index.php/How_to_add_Marquee_effect_in_ListBox
原创粉丝点击