On 06/05/2020 20:36, Vojtěch Čihák via lazarus wrote:
AFAIK with TCustomControl you obtain just Resize and then Paint.
Paint is preceded by WMPaint. You should move your code to one of
these methods.
Probably done by the OS.
Example
https://docs.microsoft.com/en-gb/windows/win32/api/winuser/nf-winuser-movewindow?redirectedfrom=MSDN
If called to change the size and called with bRepaint then invalidation
is taken care of.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus