I want a bmp image to appear on a single page “selectadditionaltasks” but it appears on all pages. What am I doing wrong?
procedure LogoOnClick(Sender: TObject);
var ResCode: Integer;
begin
end;
procedure LogoWizard();
var
BtnPanel: TPanel;
BtnImage: TBitmapImage;
begin
ExtractTemporaryFile('Logo.bmp')
BtnPanel:=TPanel.Create(WizardForm)
with BtnPanel do begin
Left:=40
Top:=250
Width:=455
Height:=42
Cursor:=crHand
OnClick:=@logoOnClick
Parent:=WizardForm
end
BtnImage:=TBitmapImage.Create(WizardForm)
with BtnImage do begin
AutoSize:=True;
Enabled:=False;
Bitmap.LoadFromFile(ExpandConstant('{tmp}')+'\Logo.bmp')
Parent:=BtnPanel
end
end;
procedure InitializeWizard();
begin
LogoWizard();
end;
image example

By setting a
Parentof yourBtnPanelto theWizardFormyou’re telling, that you want that panel to be an immediate child of the whole wizard form. You’d have to change theBtnPanel.Parentproperty to the page surface, on which you want that panel to appear.Since you want your image to appear on the Select Additional Tasks wizard page, the best I can suggest is to use just the image without an underlying panel and resize the
TasksListcheck list box, which by default covers also the bottom area of the page, where you want to place your image. And that does the following script. You may follow thecommented versionof this script as well: