I encountered a display error when working with TAdvMaskEditBtn.
Without scaling its fine. But when applying scaling (e.g. ScaleForPPI(153);) a part of the Btn area is overdrawn by the edit control.
This happens while the control is active, when exiting, it is redrawn fine:
The VCL Components currently follow the screen scale. Manually calling ScaleForPPI will have unwanted side-effects. We'll investigate if something can be done about this.
(top: control in form, bottom: control in an embedded form)
This approach works for all common controls.
Because this issue still looks like the old behavior, I hope you might find some missing parameter in the EditRect-calculation.
I broke down this approach in a little demo application which I attached.
When pressing the Load-Button, the form with the AdvMaskEditBtn is loaded.
This was because you change the scale before the parent is set.
A workaround is to set the scale after the control parent is set. In the next update, we've also handled this particular case that you change the scale before the parent is set.