You need to hide the Bevel1 , MainPanel and InnerNotebook when you switch to your welcome page and show them again when you leave it. Conversely, an image needs to be shown only when you show your welcome page, as it covers the entire area of ββthe page. Thus, the following code will do the trick:
[Code] var WelcomePageID: Integer; BitmapImage: TBitmapImage; procedure InitializeWizard; var WelcomePage: TWizardPage; begin WelcomePage := CreateCustomPage(wpWelcome, '', ''); WelcomePageID := WelcomePage.ID; BitmapImage := TBitmapImage.Create(WizardForm); BitmapImage.Bitmap.LoadFromFile('C:\Image.bmp'); BitmapImage.Top := 0; BitmapImage.Left := 0; BitmapImage.AutoSize := True; BitmapImage.Cursor := crHand; BitmapImage.Visible := False; BitmapImage.Parent := WizardForm.InnerPage; end; procedure CurPageChanged(CurPageID: Integer); begin BitmapImage.Visible := CurPageID = WelcomePageID; WizardForm.Bevel1.Visible := CurPageID <> WelcomePageID; WizardForm.MainPanel.Visible := CurPageID <> WelcomePageID; WizardForm.InnerNotebook.Visible := CurPageID <> WelcomePageID; end;
TLama Jun 22 '12 at 12:35 2012-06-22 12:35
source share