Delphi 10.2 behavior is very strange. When I move the cursor over any input control (TCheckBox, TEdit,...) the OnPaint message called on the form. I have a TPanel on the form witch is a canvas for custom drawing (TControlCanvas is used). How could I disable the unwanted OnPaint messages because the custom draw could take a while (thousands of elements may draw themselves on it).
I just want it to repaint on form resize or on after invalidate.