Mattias Gaertner wrote:
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.

Thanks, I'll try that.

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.

Acctually I don't need to paint at 500khz. A good movie is 24Hz or so anyway, and the monitor won't do any better then 60Hz anyway. I was thinking of painting at ~10Hz.

The timer problem is non-graphics related. I would like to receive data from the ISA card at 500khz (or I will lose data). But thank you all for your help so far. I will research if there is a way to create a very efficient timer. If not, I'll just use another thread.

thanks,

Felipe

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

Reply via email to