gpt4 book ai didi

inno-setup - Inno Setup 中的全屏背景图像

转载 作者:行者123 更新时间:2023-12-05 02:20:17 78 4
gpt4 key购买 nike

如何在 Inno Setup 编译器中为我们的设置提供背景全屏图像。

喜欢下面这张图。

enter image description here

最佳答案

不要那样做。这违反了 Windows 设计指南。


无论如何,如果必须,请使用 WindowVisible=yes directive 启用传统的全屏安装程序模式然后通过类型为 TMainFormMainForm 全局变量修改(现在可见的)背景窗口.

[Setup]
WindowVisible=yes

[Files]
Source: "back.bmp"; Flags: dontcopy

[Code]

procedure InitializeWizard();
var
BackgroundImage: TBitmapImage;
begin
BackgroundImage := TBitmapImage.Create(MainForm);
BackgroundImage.Parent := MainForm;
BackgroundImage.SetBounds(0, 0, MainForm.ClientWidth, MainForm.ClientHeight);
BackgroundImage.Stretch := True;
ExtractTemporaryFile('back.bmp');
BackgroundImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\back.bmp'));
end;

enter image description here

关于inno-setup - Inno Setup 中的全屏背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39683399/

78 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com