MarqueePane looping

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

MarqueePane looping

Postby vangelisl » Wed Oct 21, 2009 9:10 am

Hello,
I know its not possible with the current code, but could you recommend a way of making the marquee pane seem like its endlessly looping, for example when the text its displaying ends, have the head of the text right behind it, like a real life marquee.
Thank you.
vangelisl
 
Posts: 27
Joined: Wed Sep 03, 2008 9:08 am

Re: MarqueePane looping

Postby JIDE Support » Wed Oct 21, 2009 9:58 am

Please try duplicate the first several characters in the end in your displaying string based on the width of the MarqueePane and set the timer accordingly so that it looks like it's an endless loop.

For example, if you want to display "GOOG 429.11 -6.51 DIA 87.64 -0.1 FXI 39.19 +1.12 GLD 93.62 -0.21 USO 39 +0.81 MSFT 22.25 +0.17", you could make the string to "GOOG 429.11 -6.51 DIA 87.64 -0.1 FXI 39.19 +1.12 GLD 93.62 -0.21 USO 39 +0.81 MSFT 22.25 +0.17 GOOG 429.11 -6.51 DIA 87.64 -0.1 ".

Since the width of the MarqueePane is limited, if you have a long unknown string, you could programmatically copy the first several letters (which is decided by the width of the MarqueePane) of the string and append them to the end.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: MarqueePane looping

Postby vangelisl » Thu Oct 22, 2009 12:01 am

Thank you for that, will give it a shot!
vangelisl
 
Posts: 27
Joined: Wed Sep 03, 2008 9:08 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 75 guests