El 27/02/2017 a las 23:49, Mattias Gaertner via Lazarus escribió:

Instead of Repaint it should use Invalidate.

Hello,

Invalidate queues a paint but repaint calls an inmediate repaint do not?

In other words, in Windows world Invalidate uses PostMessage and Repaint uses SendMessage, or am I wrong ?

And when changing multiple LCL properties, you should enclose it in
DisableAutoSizing/EnableAutoSizing.
  DisableAlign;
  AnimationQueue.PaintAll;
  EnableAlign;

Yes, I forgot to disable the autoaling, this for sure will reduce CPU when many controls are being moved at a time, thank you.

This confirms that the lib is not ready to be used :-)

--

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to