If I do the following for a TPaintBox, I clear the parent control as well as the paint control:
If I switch to ClearRect, it then works correctly:
canvas.ClearRect(TRectF.Create(0, 0, width, height), TAlphaColors.Gray);
I’m guessing it’s because the paint box is sharing the parents canvas and clear works on that, but clear rect does the right thing. Can anyone confirm this?