Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    52

    Smile How to code marquee effect in custom istbox

    I need a custom listbox, the S60 offer listbox can not afford my need.

    Using the method suggested in http://www.antonypranata.com/article...box-symbian-os
    , I can get a self defined list box.

    However, Marquee effect is not offered. In S60, I find this function should be implemented in CColumnListBoxItemDrawer,
    but i can not read the source code.

    Can anyone give me some advice to implemente marquee effect in custom listbox?

    Many thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,183

    Re: How to code marquee effect in custom istbox

    you could use CFont to check the length of the string, then you should already know the space reserved for it, thus you would know whether it fits, then just use Left/Mid/Right to drawn parts of the string with a timer..

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    52

    Re: How to code marquee effect in custom istbox

    I just want to use marquee effect on the focus item.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,183

    Re: How to code marquee effect in custom istbox

    I have not worked with custom CColumnListBoxItemDrawer, but if you are drawing the text in it to each item, you could use the method i descriped for the selected item only then..

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,350

    Re: How to code marquee effect in custom istbox

    Quote Originally Posted by topocheng View Post
    I just want to use marquee effect on the focus item.
    In the DrawActualItem check for aItemIsCurrent.
    Nokia Developer Wiki Moderation team

  6. #6
    Registered User
    Join Date
    Jul 2009
    Posts
    34

    Re: How to code marquee effect in custom istbox

    Hi,
    Add these two lines where you are writing code for creting listbox.

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

    iEntryListBox instead of this give the handle of your listbox.
    Marquee effect will come.Just Try.

Similar Threads

  1. How to add Marquee effect in CEikTextListBox
    By narsi27 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-10-16, 13:58
  2. how to port application on different devices
    By rmks in forum Mobile Java General
    Replies: 7
    Last Post: 2008-11-10, 18:03
  3. Replies: 3
    Last Post: 2008-11-06, 17:19
  4. marquee effect in SETTING LIST
    By harish13_ks in forum Open C/C++
    Replies: 0
    Last Post: 2007-04-16, 08:19
  5. Marquee effect for listbox items
    By vinayakak in forum Symbian User Interface
    Replies: 5
    Last Post: 2005-12-17, 14:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×