I want to put an image in the space on the top of the wizard, as shown in the picture. And hide the page title and description.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Cover the MainPanel
with an image and hide all its other components (WizardSmallBitmapImage
, PageDescriptionLabel
and PageNameLabel
):
[Files]
Source: "rainbow.bmp"; Flags: dontcopy
[Code]
procedure InitializeWizard();
var
BitmapImage: TBitmapImage;
begin
ExtractTemporaryFile('rainbow.bmp');
BitmapImage := TBitmapImage.Create(WizardForm);
BitmapImage.Parent := WizardForm.MainPanel;
BitmapImage.Width := WizardForm.MainPanel.Width;
BitmapImage.Height := WizardForm.MainPanel.Height;
BitmapImage.Stretch := True;
BitmapImage.AutoSize := False;
BitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\rainbow.bmp'));
WizardForm.WizardSmallBitmapImage.Visible := False;
WizardForm.PageDescriptionLabel.Visible := False;
WizardForm.PageNameLabel.Visible := False;
end;
See also How to hide the main panel and show an image over the whole page?
and Inno Setup - Transparency under text in page name and description labels.
标签:
inno-setup