Page 1 of 1

How to add newline to TRealTimeMarquee html text

PostPosted: July 16th, 2013, 1:16 am
by d_user
Hello,
First of all I would like to thank the creator of TRealTimeMarquee for this very nice component.

My question :
I have TRealTimeMarquee with moVertical Orientation the text that I want to scroll is html formattting like this :
line1
line2
ine3
but the problem newline is omitted and it show it in on long line like this :
line1line2ine3

Code: Select all
 RealTimeMarquee1.Orientation:=moVertical ;
 RealTimeMarquee1.Items.Clear ;
 RealTimeMarquee1.Items.Add  ;
 RealTimeMarquee1.Items[0].Text :='line1<br><b>line2</b><br><font color="#FF0000" >line3</font>';
 RealTimeMarquee1.Items[0].Style:=msHTML ;
 RealTimeMarquee1.Active :=true;


How to fix that ?!

Thanks

Re: How to add newline to TRealTimeMarquee html text

PostPosted: July 16th, 2013, 6:42 am
by d_user
Hello,
I found solution ,
I reloaded the text using :

Marquee.Items.LoadFromStrings(Memo.Lines, msHTML);

and I set the spacing to 0 , (which was 100 in my project)

Now it working

Thanks

Re: How to add newline to TRealTimeMarquee html text

PostPosted: August 14th, 2015, 8:19 pm
by jotaoro
hi !!

i have the same problem, but your solution is not working for me, basically i need to split or break the whole string line, for example, supose we have an string like 'Hello, this is an example that use TRealTimeMarquee', so, the breaked line looks like 'Hello, this is an<br> example that use<br> TRealTimeMarquee'...

i try your solution but it still not working, i set the spacing property to zero (0) but nothing is reflected...

Any suggestion to acomplish this requierement??...

I'll apreciate your help...

thanks a lot...