如何将图像放置在自定义页面的最左侧以及放置在“欢迎”页面和“完成”页面上? (创新设置)

时间:2020-03-18 22:13:15

标签: inno-setup

我已经创建了一个自定义页面,我需要将图像放置在该页面上,并完成“欢迎”页面和“完成”页面的操作。所以我需要它看起来像这样:

enter image description here

但是我有这个:

enter image description here

这是一些代码:

procedure InitializeWizard;
var
  bmpiWizardLeftSideImage: TBitmapImage; 
begin
  wpSelectInstallTypePage := CreateCustomPage(wpSelectDir, ExpandConstant('{cm:InstallTypePageCaption}'), ExpandConstant('{cm:InstallTypePageDescription}'));
  bmpiWizardLeftSideImage := TBitmapImage.Create(WizardForm);
  with bmpiWizardLeftSideImage do
  begin
    Parent := wpSelectInstallTypePage.Surface;
    Bitmap.LoadFromFile('D:\Images\InstallImage.bmp');
    AutoSize := True;
    Left := 0;
    Height := ScaleX(Height);
    Width := ScaleY(Width); 
  end;
end;

0 个答案:

没有答案
相关问题