-1
我想將圖像放在嚮導頂部的空間中,如圖所示。並隱藏頁面標題和說明。在Inno Setup嚮導的頂部面板中顯示圖像,而不是頁面標題和說明
我想將圖像放在嚮導頂部的空間中,如圖所示。並隱藏頁面標題和說明。在Inno Setup嚮導的頂部面板中顯示圖像,而不是頁面標題和說明
蓋上MainPanel
與圖像和隱藏所有其的其他組件(WizardSmallBitmapImage
,PageDescriptionLabel
和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;
又見How to hide the main panel and show an image over the whole page?
和Inno Setup - Transparency under text in page name and description labels。
非常感謝你 –
請參閱[我應該怎麼做當有人回答我的問題?] –
您是否閱讀過上面的鏈接? –