On Sat, 01 Oct 2005 08:57:33 -0300
Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote:

> Felipe Monteiro de Carvalho wrote:
> > and put a: "PaintBox.Repaint;" on a separate timer that is slower.
> 
> This method is really terrible. There is an awful lot of flickering ...
> 
> Does anyone know a better method to redraw the content of the canvas?

To avoid flickering:
Create a descendent of TCustomControl, call Invalidate and
Application.ProcessMessages, in Paint draw to a bitmap and draw the bitmap
to the canvas.

Because a paint will take longer than a 500kHz intervall, you either call
Invalidate only once a second and loose some data, or you use threads.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to