我在FormStyle = fsMDIForm
中构建了一个MDI(Delphi 10 Seattle Update 1
)VCL应用程序。我禁用High-DPI并运行以下代码:
var F: TForm;
B: TTaskBar;
begin
F := TForm.Create(Application);
F.FormStyle := fsMDIChild;
B := TTaskBar.Create(F);
B.TabProperties := [TThumbTabProperty.CustomizedPreview];
end;
我在Windows 8.1上使用这些设置支持多显示器运行应用程序:
Control Panel | Display
中,取消选中Let me choose one scaling level for all my displays
和Change the size of all items
除了smaller
(96
dpi)以外的其他比例(例如:中间 - 120
dpi或更大144
dpi)当我将鼠标指针移动到Windows任务栏上的按钮时,应用程序将引发Failed to set bitmap as preview
异常。
如果我在Project | Option
中启用了高DPI识别功能,则可以正常使用。
TTaskBar不适合非高DPI感知应用吗?