Previewform on Multidisplay with different DPI settings
Hi, we have a very crazy problem with Delphi 10.3 or 10.4 with following setup:
1. Screen with 100%
2. Screen with 125%
Mainform is started at Monitor 125%. Opening Previewform from Reportbuilder is very crazy. form is i.e. 800*500px but the area where the report is shown is only 400*250px (round about) and is showing scrollbars ....
Can you please check this asap?
1. Screen with 100%
2. Screen with 125%
Mainform is started at Monitor 125%. Opening Previewform from Reportbuilder is very crazy. form is i.e. 800*500px but the area where the report is shown is only 400*250px (round about) and is showing scrollbars ....
Can you please check this asap?
Comments
MicrotronX - Speditionssoftware vom Profi
https://www.microtronx.com
Viewer.Top := 2;
Viewer.Left := 2;
Viewer.Height := Viewer.Parent.Height-4;
Viewer.Width := Viewer.Parent.Width-4;
Viewer.Anchors := [akLeft, akTop, akRight, akBottom];
I removed these lines and replaced with following lines:
Viewer.AlignWithMargins:=true;
Viewer.Margins.Top:=2;
Viewer.Margins.Left:=2;
Viewer.Margins.Right:=2;
Viewer.Margins.Bottom:=2;
Viewer.Align := alclient;
Now the problems are solved!
MicrotronX - Speditionssoftware vom Profi
https://www.microtronx.com
Please provide steps to reproduce/test this behavior. I tried setting to 125% and calling Report.Print, but the preview form shoes correctly.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
MicrotronX - Speditionssoftware vom Profi
https://www.microtronx.com