Hi, I believe that this has been an issue for a long time. As more users of our product are using high resolution monitors this problem is getting raised more frequently.
Problem:
The floating panel/window and the glow outline are painted in different positions when the panel is on a monitor with scaling set to something other than 100%.
Scenario:
Run the LMD Docking Demo on a system that has two monitors, primary set to 100% scaling and a second monitor set to 150% scaling.
Drag one of the docked panels out of the main window so that it is floating.
Drag that panel to the secondary monitor with 150% scaling.
Expected:
Glow border is painted in the correct position, as shown here when it is on the primary 100% scaling monitor:
Result:
The glowing border outline is painted in a different position to the panel window, offset horizontally and vertically which changes depending on where on the monitor the panel is dragged as shown below.
There are also strange glow outlines painted in strange positions while the panel window is visible on both monitors and some strange jumping/movement of the panel window shortly after moving it to a different monitor.
This is a problem both with Delphi 12.2 and 10.1, in both the LMD Docking Demo and in our own application (which is not DPI aware).
I was unable to try LMD Docking Pack 2025 because the download links are broken (see next post).
UPDATE: I tried changing the DPI Awareness manifest setting in the project options of the LMD Docking Demo and found that ONE SETTING WORKS: Per Monitor v2.
If the setting is anything else then the position of the glow/border is incorrect. In our application we use a setting of None.
Comments