[Lazarus] repaint method on Darwin/Carbon

zeljko zeljko at holobit.net
Tue Feb 10 17:33:43 CET 2009


On Tuesday 10 February 2009 16:49, dmitry boyarintsev wrote:
> > 1. like dmitry says - Carbon/Cocoa & Qt on all platforms does not allow
> > paintings outside of paint event.
> > 2. Calling repaint is very expensive (CPU), try with
> > YourControl.Invalidate; or YourControl.Update;
>
> Invalidate and Update will take effect only if messages queue is
> processed (by ProcessMessages or PostMessages if blocked by an event).

but he is calling Application.ProcessMessages; after Repaint; , so why not 
Invalidate or Update ?

> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus



More information about the Lazarus mailing list