HighDPI Anchors in TFrame are not always correctly applied
- Lazarus/FPC Version: Lazarus 2.2.2 (rev lazarus_2_2_2) FPC 3.2.2 x86_64-win64-win32/win64
- Operating System: Win 8 and 11 ARM
- CPU / Bitness: 32 and 64 bit
What happens
TFrame anchoring is not always correct when moving a Lazarus project between two computers with different DPI.
I included an example project with one form and one frame created at runtime. The project was designed on 192DPI screen then re-opened to a 96DPI screen. The problem arises when you transfert the project to the other computer and edit a property (to mark the frame as modified) in the frame (unit2) without changing anything on the form (unit1).
What did you expect
The anchoring should be correctly applied
Steps to reproduce
1 - Open the project on HighDPI screen and modify/save both Form and Frame 2 - Execute -> Anchoring should be find 3 - Transfer the project to LowDPI screen/machine and only change the frame (not the form) to mark the frame.LFM as changed. 4 - Save and execute the project. You should have problem with the TMemo anchoring.