Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Graeme Geldenhuys
On 2015-11-11 09:16, Luca Olivetti wrote: > Try the attached project. LCL inconsistency strikes again. WindowState:=wsMaximized; The above line of code has no affect under FreeBSD with LCL-GTK2. I see a small borderless window with a button on it. Anyway, I tested your project under FreeBSD

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:28, Graeme Geldenhuys ha escrit: On 2015-11-11 09:16, Luca Olivetti wrote: Try the attached project. LCL inconsistency strikes again. WindowState:=wsMaximized; The above line of code has no affect under FreeBSD with LCL-GTK2. I see a small borderless window with a

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 01:21, Luca Olivetti ha escrit: El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 11/10/2015 12:30 PM, Luca Olivetti wrote: - it is very cpu intensive (I have to put it over a picture, so the invalidate will also force the repainting of the bitmap I guess) The only cure for this is using the graphic processor: only once create a wide pixel array

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Michael Schnell
On 11/11/2015 10:08 AM, Mark Morgan Lloyd wrote: Michael Schnell wrote: On 11/10/2015 12:30 PM, Luca Olivetti wrote: - it is very cpu intensive (I have to put it over a picture, so the invalidate will also force the repainting of the bitmap I guess) The only cure for this is using the graphic

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:26, Luca Olivetti ha escrit: El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-11 Thread Luca Olivetti
El 11/11/15 a les 10:16, Luca Olivetti ha escrit: El 11/11/15 a les 09:28, Luca Olivetti ha escrit: That at least explains the timing differences (but not the unresponsiveness of the full screen application under windows 7) TextRect! Try the attached project. Under windows XP the TextRect

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Aradeonas
Probably you are somewhere wrong, provide your code so we can check. Regards, Ara -- http://www.fastmail.com - Same, same, but different... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Graeme Geldenhuys
On 2015-11-10 12:28, Luca Olivetti wrote: > I guess codebot needs a newer fpc, it doesn't compile with 2.6.4. You can also take a look at AggPas, which can easily accomplish what you ask for - with out 0-1% CPU load (tested previously on my system). Lazarus includes a copy of AggPas as standard.

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 16:55, Graeme Geldenhuys ha escrit: On 2015-11-10 12:28, Luca Olivetti wrote: I guess codebot needs a newer fpc, it doesn't compile with 2.6.4. You can also take a look at AggPas, which can easily accomplish what you ask for - with out 0-1% CPU load (tested previously on my

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Graeme Geldenhuys
On 2015-11-10 16:48, Aradeonas wrote: > Probably you are somewhere wrong, +1 Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Graeme Geldenhuys
On 2015-11-10 16:43, Luca Olivetti wrote: > Impressive, but I looked at the source and it uses its own kind of > application. Don't let the demos confuse you. The demos were implemented to be cross-platform in their own way, with its own widgets used by the demos. The idea comes from the

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Anthony Walter
I am actually working on a new project which will be used to create a beautiful text animations. I'm not sure when I'll have anything previewable done, but the basic idea is you layout curves with spline nodes, put text on the curve, set timeline values for text offset in x and y along the curve,

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 17:48, Aradeonas ha escrit: Probably you are somewhere wrong, provide your code so we can check. Regards, Ara Here is the component I adapted from the forum posting. Originally it used a timer instead of a thread and I have to clean it up once I decide for one option or

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Aradeonas
If you have a design and could share it,send it to me maybe I can make an example. Regards, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- ___ Lazarus mailing list

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 18:47, Graeme Geldenhuys ha escrit: On 2015-11-10 16:43, Luca Olivetti wrote: Impressive, but I looked at the source and it uses its own kind of application. Don't let the demos confuse you. The demos were implemented to be cross-platform in their own way, with its own

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 23:37, Graeme Geldenhuys ha escrit: On 2015-11-10 21:09, Luca Olivetti wrote: But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL is seriously broken. I don't know if it's broken,

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Graeme Geldenhuys
On 2015-11-10 21:09, Luca Olivetti wrote: > But in the end I have to render it on the LCL canvas Via a single BitBlt which should be more than fast enough for what you described. Unless LCL is seriously broken. But as the AggPas demos shows, text animation (more advanced that what you described

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
El 10/11/15 a les 12:36, Aradeonas ha escrit: If I were you I used BGRABitmap or Codebot,they have good text option and you can made a simple one easily,it will be fast,light and beautiful. I guess codebot needs a newer fpc, it doesn't compile with 2.6.4. I'm following the tutorials for

[Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Luca Olivetti
Hello, in my current project, I need a marquee. I adapted the component from here: http://forum.lazarus.freepascal.org/index.php?topic=24646.0 which is a descendant of a TCustomLabel using a timer to move the text position. I have several problems with it: - it is very cpu intensive (I have

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Aradeonas
If I were you I used BGRABitmap or Codebot,they have good text option and you can made a simple one easily,it will be fast,light and beautiful. Regards, Ara -- http://www.fastmail.com - Accessible with your email software or over the web --

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Michael Schnell
On 11/10/2015 12:30 PM, Luca Olivetti wrote: - it is very cpu intensive (I have to put it over a picture, so the invalidate will also force the repainting of the bitmap I guess) The only cure for this is using the graphic processor: only once create a wide pixel array from the text and then use

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Graeme Geldenhuys
On 2015-11-10 21:16, Luca Olivetti wrote: > Here is the component I adapted from the forum posting. I quickly created my own scrolling label test widget for fpGUI. Attached is the unit. I set the scrolling step to 2 pixels and scrolling speed at 20 milliseconds. It uses a fpGUI Timer (no

Re: [Lazarus] Smooth scrolling label (marquee)

2015-11-10 Thread Aradeonas
Yes for codebot you can use Trunk version or easily get nigh version from GetLazarus website. Regards, Ara -- http://www.fastmail.com - Email service worth paying for. Try it for free -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org