How to add newline to TRealTimeMarquee html text

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

How to add newline to TRealTimeMarquee html text

Postby d_user » July 16th, 2013, 1:16 am

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
d_user
Member
Member
 
Posts: 2
Joined: July 16th, 2013, 12:55 am

Re: How to add newline to TRealTimeMarquee html text

Postby d_user » July 16th, 2013, 6:42 am

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
d_user
Member
Member
 
Posts: 2
Joined: July 16th, 2013, 12:55 am

Re: How to add newline to TRealTimeMarquee html text

Postby jotaoro » August 14th, 2015, 8:19 pm

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...
jotaoro
Member
Member
 
Posts: 1
Joined: August 14th, 2015, 8:06 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 19 guests

cron