×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    50

    Unhappy How to get the Text of a ticker?

    Hell Friends,

    I am working on a project of J2ME where-in my requirement is to have a ticker on the application. The text on the ticker can be as :-
    Hi Hello How are you? Bye bye

    So now when this text is displayed what is want is if the text displayed in the ticker is Hi then that shall be displayed on the other form... and if Hello is there than Hello shall be displayed and so on........

    My concern is whether this is possible i mean whether it is possible to get the
    text which is being displayed in the ticker and perform some opertaion on it.

    Its Urgent!!!

    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: How to get the Text of a ticker?

    Yes, use
    public String getString()method of J2me Ticker.

    It Gets the string currently being scrolled by the ticker.

    e.g.: String text=Ticker.getString();

    Thanks,
    ~Amitabh Srivastava

  3. #3
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    50

    Re: How to get the Text of a ticker?

    Thanks Amitabh.

    With the Ticker.getString() function i get the whole string what i want is a part of the text which is visible to the user.. suppose user is able to see "Hello" and the rest of the string is yet to be visible to user...

    Hope you understood my problem.

    Thanks !!

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How to get the Text of a ticker?

    Hi,

    you cannot get the visible text part with the inbuilt Ticker component. Only available option would be to build your own Ticker (e.g. Canvas-based, or by extending CustomItem, depending on your needs).

    Pit

Similar Threads

  1. S60 3rd - Text ticker on home screen
    By ckasek in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-03-09, 11:19
  2. how to draw a ticker and a text on it, using Graphics class
    By nagesh.chetana in forum Mobile Java General
    Replies: 5
    Last Post: 2008-07-28, 05:50
  3. ticker type scrollling of text in listbox
    By lkz633 in forum Symbian
    Replies: 2
    Last Post: 2006-07-19, 21:46
  4. How to create a Ticker (scrolling text) ??
    By TeachMe in forum Symbian
    Replies: 1
    Last Post: 2006-05-18, 13:51
  5. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

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