Hi,
If you have a autosized TFrame with a TcxTextEdit (or TcxDataEdit, I guess all descendants from TcxCustomEdit) in the frame, the frame is not (correctly) AutoSized if the form is shown for the first time. This occurs only if the controls are first shown on high DPI (>100%). A VCL TEdit in the same situation scales the frame correctly.
Attached is a small program to reproduce this. All frames in the program have a blue background so you can easy it fails (you should never see a blue background).
Hello Laurens,
I am not sure that I correctly reproduced this behavior with your project. On my machine I see blue borders even when the DPI rate is 100%. As far as I can see, this happens because of the transparent border that our editors use by default. If you disable the Style.TransparentBorder property, the frame's blue background should disappear. Would you please check if this approach helps in your scenario?
If it does not help, provide me with an image demonstrating the actual result. Thanks in advance.
Hi Paulo,
Attached is a screenshot of the actual result on a 4k monitor with 225% scaling (the higher the scaling, the bigger the border). This is not the transparentborder (I have tested this another time).
The problem is that the TcxEdit sizes according to the font size (if you disable AutoSize the TcxEdit is scaled linear and not depending on the font size, then there is no blue border). After your control is sized, it somehow does not notify it parent (the frame) to autosize again. In the VCL TEdit this works correctly, but not in your control.
I hope this clarifies more; do not hesitate to ask me additional information.
Thanks, Laurens. It may take us some time to examine this scenario.
Hi Paulo,
Do you already have a clue about this issue?
We have not found a solution yet.
Hi Paulo,
Can you tell me the status of this issue?
We have not found a solution yet. This issue is very complex and it will require significant changes and testing.