A Little fix for the Real Time Marquee

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

A Little fix for the Real Time Marquee

Postby dvio » August 13th, 2009, 12:05 am

Hi, I am just starting to use TRealTimeMarquee v2.2, and I found it to be a great component.

But I found a little bug while I try to use it in my application. The <img> tag didn't work as expected, when I try to add a "not squared" image (e.g. 96x48) the image was drawn the wrong way. So I decided to take a peek on the source, and I found that the problem was in the RealTimeMarquee.pas at line 1660 and 1661.

It was written this way:

Rect.Top := (Rect.Top + Rect.Bottom - W) div 2;
Rect.Bottom := Rect.Top + W;

which is wrong (I think), while the right one should be like this:

Rect.Top := (Rect.Top + Rect.Bottom - H) div 2;
Rect.Bottom := Rect.Top + H;

Well, I hope it would help others with the same problem.

And I would like to thank you for your great components. Keep up the good work.

De Vio

PS: Pls excuse my bad English
Posts: 1
Joined: August 12th, 2009, 11:47 pm

Re: A Little fix for the Real Time Marquee

Postby Kambiz » August 15th, 2009, 2:57 am

Thank you so much for the fix.
User avatar
Posts: 2430
Joined: March 7th, 2003, 7:10 pm

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 1 guest