How to create marquee effect in a CAknSingleGraphicStyleListBox listbox?

Login to reply to this topic.
Wed, 2007-08-08 03:22
Joined: 2007-06-20
Forum posts: 26

The title of the item is too long to display fully. So I want to create marquee effect in the listbox.
Looking up in the SDK, I found the function EnableExtendedDrawingL can be used.


IMPORT_C void CEikFormattedCellListBox::EnableExtendedDrawingL ( )

This method needs to be called to enable extended drawing features such as skinning, pictograph drawing and marquee text in the listbox draw routine.

Methods CEikFormattedCellListBox::ConstructL and CEikFormattedCellListBox::ConstructFromResourceL call this method. So, you only need to call this if your listbox implementation does not call either of those.

This method can be safely called more than once. Item drawer must be created before calling this method, or a panic is raised.

Since:
2.6


  
But it doesn't work. And my code is as follows.

	iStartupListBox = new (ELeave) CAknSingleGraphicStyleListBox;
	iStartupListBox->SetContainerWindowL(*this);

	TResourceReader reader;
	CEikonEnv::Static()->CreateResourceReaderLC(reader, R_STARTUP_LISTBOX);
	iStartupListBox->ConstructFromResourceL(reader);
	CleanupStack::PopAndDestroy(); // reader
	iStartupListBox->EnableExtendedDrawingL();

  
How to realize marquee effect?


Wed, 2007-08-08 05:33
Joined: 2007-06-20
Forum posts: 93
Re: How to create marquee effect in a CAknSingleGraphicStyleList

hi,
Check this link from wiki forum nokia....................
http://wiki.forum.nokia.com/index.php/How_to_add_Marquee_effect_in_ListBox


Thanks & Regards,
C Singh

Wed, 2007-08-08 07:16
Joined: 2007-06-20
Forum posts: 26
Re: How to create marquee effect in a CAknSingleGraphicStyleList

Thanks, chandantheracer.

But the first SetMarqueeParams is not a member function of CColumnListBoxData.

  • Login to reply to this topic.