I have this app in Delphi FMX that works great on my desktop. But, after I implemented a dynamic resizing function for the app's window, all of my edit boxes and buttons have these margin lines in them that I can't seem to get rid of.
Has anyone seen these before, or have any insight on how to get rid of them?
I've looked in the properties tab for each edit box and button. The margins are set to 0, and none of the other properties stick out as a culprit.
It looks like scaling causes this kind of distortion for (system default?) style that uses BitmapLinks
, which you can try to "fix" using the BitmapLinks Editor
in the Style Designer
. Try editing the default style for each control's state and resolution, like this:
background
for EditStyle
)TBitmapLinks
and press the three dotsLinks
list and each required resolution (at least 1,00 x) matching the blue squares with the yellow ones as indicated by the arrowsOr, even better, you can create your own vector-based style by using the TRectangle
as a background:
A more global way to prevent this kind of distortion is to force GDI+ with FMX.Types.GlobalUseDirect2D := false;
before Application.Initialize;
in your .dpr
file. Sometimes this will help. However, it may cause further display problems.