I build a MDI (FormStyle = fsMDIForm) VCL application in Delphi 10 Seattle Update 1. I disable High-DPI and running the following code:
var F: TForm;
B: TTaskBar;
begin
F := TForm.Create(Application);
F.FormStyle := fsMDIChild;
B := TTaskBar.Create(F);
B.TabProperties := [TThumbTabProperty.CustomizedPreview];
end;
I run the application on Windows 8.1 with multi monitor support with these settings:
- Primary Display 0: 1920 x 1080 resolution
- Display 1: 1366 x 768 resolution
- In
Control Panel | Display, uncheckLet me choose one scaling level for all my displaysand Change the size of all itemsto scale other thansmaller(96dpi) (e.g.: Middle -120dpi or Larger144dpi)
The application will raise Failed to set bitmap as preview exception when I move mouse pointer over to button on windows task bar.
If I enable the High DPI aware in Project | Option, it works fine.
Is TTaskBar not suitable for non High-DPI aware application?