[Lazarus] Scrolling text

Daniel Erles derles at gmail.com
Fri May 23 17:44:28 CEST 2014


Thks Vojtech,
I'll try the Canvas.TextOut way.
I hope it doesen't blink, or so. Let's see.


2014-05-23 10:36 GMT-04:00 Vojtěch Čihák <vojtech.cihak at atlas.cz>:

> Hi,
>
>
>
> I don't know any component. Basically you can do it with Canvas.TextOut(X,
> Y, string);. Use timer and OnTimer event will render the text in position
> x:=x-1.
>
> Better approach can be to create a "long" TBitmap with text and only copy
> the part of bitmap to canvas. Of course it depends on the length of text
> too.
>
> Solution with bitmap needs more memory but less CPU.
>
>
>
> Vojtěch
>
> ______________________________________________________________
> > Od: Daniel Erles <derles at gmail.com>
> > Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> > Datum: 23.05.2014 15:47
> > Předmět: [Lazarus] Scrolling text
> >
>  Hello.
> I need to put in a form an horizontally scrolling text. Something like a
> StaticText (so I can set text style), but with the text scrolling
> horizontally, like a markee, just one line, one or two words.
> Anyone knows any control with this property, or how to do it
> programmatically in an easy way?
> Tks !
> Daniel
>
>
>
> ----------
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140523/e42f05b1/attachment-0003.html>


More information about the Lazarus mailing list