2016-07-31 92 views

回答

1

蓋上MainPanel與圖像和隱藏所有其的其他組件(WizardSmallBitmapImagePageDescriptionLabelPageNameLabel):

[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; 

Rainbow Wizard


又見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

+0

非常感謝你 –

+0

請參閱[我應該怎麼做當有人回答我的問題?] –

+0

您是否閱讀過上面的鏈接? –

相關問題