我已经创建了一个自定义页面,我需要将图像放置在该页面上,并完成“欢迎”页面和“完成”页面的操作。所以我需要它看起来像这样:
但是我有这个:
这是一些代码:
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;