Black_Ghost, есть у меня такой [more=набросок][Setup]
AppName=My Program
AppVerName=My Program
DefaultDirName={pf}\My Program
[Files]
Source: image1.bmp; DestDir: {tmp}; Flags: dontcopy solidbreak deleteafterinstall
Source: image2.bmp; DestDir: {tmp}; Flags: dontcopy solidbreak deleteafterinstall
[code]
var
MyPanel, MyPanel2, MyPanel3: TPanel;
WelcomeLabel1, WelcomeLabel2, PageNameLabel,PageDescriptionLabel,SelectDirLabel,SelectDirBrowseLabel,DiskSpaceLabel, FinishedLabel, FinishedHeadingLabel: TLabel;
BitmapImage1: TBitmapImage;
procedure InitializeWizard();
begin
ExtractTemporaryFile('image1.bmp');
WizardForm.WizardBitmapImage2.Bitmap.LoadFromFile(ExpandConstant('{tmp}\image1.bmp'));
begin
MyPanel := TPanel.Create(WizardForm);
with MyPanel do
begin
Align := alClient;
Parent := WizardForm.welcomepage;
end;
begin
MyPanel2 := TPanel.Create(WizardForm);
with MyPanel2 do
begin
Align := alClient;
Parent := WizardForm.Finishedpage;
end;
begin
MyPanel3 := TPanel.Create(WizardForm);
with MyPanel3 do
begin
Align := alClient;
Parent := WizardForm;
end;
with WizardForm.WizardBitmapImage do
begin
Align := alClient;
Parent := MyPanel;
end;
with WizardForm.WizardBitmapImage2 do
begin
Align := alClient;
Parent := MyPanel2;
end;
BitmapImage1 := TBitmapImage.Create(WizardForm);
with BitmapImage1 do
begin
Parent := MyPanel3;
Align := alClient;
ExtractTemporaryFile('Image2.bmp');
Bitmap.LoadFromFile(ExpandConstant('{tmp}\Image2.bmp'));
end;
WelcomeLabel1:= TLabel.Create(WizardForm);
WelcomeLabel1.AutoSize:= False;
with WizardForm.WelcomeLabel1 do
WelcomeLabel1.SetBounds(Left, Top, Width, Height);
WelcomeLabel1.Font:= WizardForm.WelcomeLabel1.Font
WelcomeLabel1.Font.Color:= clWhite;
WelcomeLabel1.Transparent:= True;
WelcomeLabel1.WordWrap:= true;
WelcomeLabel1.Caption:= WizardForm.WelcomeLabel1.Caption;
WelcomeLabel1.Parent:= MyPanel;
WelcomeLabel2:= TLabel.Create(WizardForm);
WelcomeLabel2.AutoSize:= False;
with WizardForm.WelcomeLabel2 do
WelcomeLabel2.SetBounds(Left, Top, Width, Height);
WelcomeLabel2.Font:= WizardForm.WelcomeLabel2.Font
WelcomeLabel2.Font.Color:= clWhite;
WelcomeLabel2.Transparent:= True;
WelcomeLabel2.WordWrap:= true;
WelcomeLabel2.Caption:= WizardForm.WelcomeLabel2.Caption;
WelcomeLabel2.Parent:= MyPanel;
PageNameLabel:= TLabel.Create(WizardForm);
PageNameLabel.AutoSize:= False;
with WizardForm.PageNameLabel do
PageNameLabel.SetBounds(WizardForm.PageNameLabel.Left, WizardForm.PageNameLabel.Top, WizardForm.PageNameLabel.Width, WizardForm.PageNameLabel.Height);
PageNameLabel.Font:= WizardForm.PageNameLabel.Font
PageNameLabel.Font.Color:= clWhite;
PageNameLabel.Transparent:= True;
PageNameLabel.WordWrap:= true;
PageNameLabel.Caption:= WizardForm.PageNameLabel.Caption;
PageNameLabel.Parent:= MyPanel3;
PageDescriptionLabel:= TLabel.Create(WizardForm);
PageDescriptionLabel.AutoSize:= False;
with WizardForm.PageDescriptionLabel do
PageDescriptionLabel.SetBounds(WizardForm.PageDescriptionLabel.Left, WizardForm.PageDescriptionLabel.Top, WizardForm.PageDescriptionLabel.Width, WizardForm.PageDescriptionLabel.Height);
PageDescriptionLabel.Font:= WizardForm.PageDescriptionLabel.Font
PageDescriptionLabel.Font.Color:= clWhite;
PageDescriptionLabel.Transparent:= True;
PageDescriptionLabel.WordWrap:= true;
PageDescriptionLabel.Caption:= WizardForm.PageDescriptionLabel.Caption;
PageDescriptionLabel.Parent:= MyPanel3;
SelectDirLabel:= TLabel.Create(WizardForm);
SelectDirLabel.AutoSize:= False;
with WizardForm.SelectDirLabel do
SelectDirLabel.SetBounds(44, 70, WizardForm.SelectDirLabel.Width, WizardForm.SelectDirLabel.Height);
SelectDirLabel.Font:= WizardForm.SelectDirLabel.Font
SelectDirLabel.Font.Color:= clWhite;
SelectDirLabel.Transparent:= True;
SelectDirLabel.WordWrap:= true;
SelectDirLabel.Caption:= WizardForm.SelectDirLabel.Caption;
SelectDirLabel.Parent:= MyPanel3;
SelectDirBrowseLabel:= TLabel.Create(WizardForm);
SelectDirBrowseLabel.AutoSize:= False;
with WizardForm.SelectDirBrowseLabel do
SelectDirBrowseLabel.SetBounds(44, 100, WizardForm.SelectDirBrowseLabel.Width, WizardForm.SelectDirBrowseLabel.Height);
SelectDirBrowseLabel.Font:= WizardForm.SelectDirBrowseLabel.Font
SelectDirBrowseLabel.Font.Color:= clWhite;
SelectDirBrowseLabel.Transparent:= True;
SelectDirBrowseLabel.WordWrap:= true;
SelectDirBrowseLabel.Caption:= WizardForm.SelectDirBrowseLabel.Caption;
SelectDirBrowseLabel.Parent:= MyPanel3;
DiskSpaceLabel:= TLabel.Create(WizardForm);
DiskSpaceLabel.AutoSize:= False;
with WizardForm.DiskSpaceLabel do
DiskSpaceLabel.SetBounds(44, 290, WizardForm.DiskSpaceLabel.Width, WizardForm.DiskSpaceLabel.Height);
DiskSpaceLabel.Font:= WizardForm.DiskSpaceLabel.Font
DiskSpaceLabel.Font.Color:= clWhite;
DiskSpaceLabel.Transparent:= True;
DiskSpaceLabel.WordWrap:= true;
DiskSpaceLabel.Caption:= WizardForm.DiskSpaceLabel.Caption;
DiskSpaceLabel.Parent:= MyPanel3;
WizardForm.DirEdit.Left:= ScaleX(44);
WizardForm.DirEdit.Top:=ScaleY(120);
WizardForm.DirEdit.Width:=wizardForm.DirEdit.Width;
WizardForm.DirEdit.Height:=WizardForm.DirEdit.Height;
WizardForm.DirEdit.Color:=clred
WizardForm.DirEdit.Font.Color:=WizardForm.DirEdit.Font.Color;
WizardForm.DirEdit.Parent:= MyPanel3
WizardForm.DirBrowseButton.Left:=ScaleX(385);
WizardForm.DirBrowseButton.Top:=ScaleY(120);
WizardForm.DirBrowseButton.Width:=WizardForm.DirBrowseButton.Width;
WizardForm.DirBrowseButton.Height:=WizardForm.DirBrowseButton.Height;
WizardForm.DirBrowseButton.Parent:= MyPanel3;
FinishedHeadingLabel:= TLabel.Create(WizardForm);
FinishedHeadingLabel.AutoSize:= False;
with WizardForm.FinishedHeadingLabel do
FinishedHeadingLabel.SetBounds(Left, Top, Width, Height);
FinishedHeadingLabel.Font:= WizardForm.FinishedHeadingLabel.Font
FinishedHeadingLabel.Font.Color:= clWhite;
FinishedHeadingLabel.Transparent:= True;
FinishedHeadingLabel.WordWrap:= true;
FinishedHeadingLabel.Caption:= WizardForm.FinishedHeadingLabel.Caption;
FinishedHeadingLabel.Parent:= MyPanel2;
FinishedLabel:= TLabel.Create(WizardForm);
FinishedLabel.AutoSize:= False;
with WizardForm.FinishedLabel do
FinishedLabel.SetBounds(Left, Top, Width, Height);
FinishedLabel.Font:= WizardForm.FinishedLabel.Font
FinishedLabel.Font.Color:= clWhite;
FinishedLabel.Transparent:= True;
FinishedLabel.WordWrap:= true;
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
FinishedLabel.Parent:= MyPanel2;
WizardForm.WelcomeLabel1.Hide;
WizardForm.WelcomeLabel2.Hide;
WizardForm.FinishedLabel.Hide;
WizardForm.FinishedHeadingLabel.Hide;
WizardForm.SelectDirLabel.Hide
WizardForm.SelectDirBrowseLabel.Hide
WizardForm.MainPanel.Hide
//WizardForm.Bevel.Hide
WizardForm.Bevel1.Hide
WizardForm.NextButton.BringToFront;
WizardForm.backButton.BringToFront;
WizardForm.CancelButton.BringToFront;
end;
end;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
PageNameLabel.Caption:=WizardForm.PageNameLabel.Caption
PageDescriptionLabel.Caption:=WizardForm.PageDescriptionLabel.Caption
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
MyPanel3.Hide;
if CurPageID = wpselectdir then
MyPanel3.Show;
end;
[/more], когда-то делал для себя, но так и не закончил. Если тебя такой вариант устроит, то по аналогии, думаю, сможешь сам доделать другие страницы.
Или немного изменённый [more=вариант][Setup]
AppName=My Program
AppVerName=My Program
DefaultDirName={pf}\My Program
[Files]
Source: image1.bmp; DestDir: {tmp}; Flags: dontcopy solidbreak deleteafterinstall
Source: image2.bmp; DestDir: {tmp}; Flags: dontcopy solidbreak deleteafterinstall
[code]
var
MyPanel, MyPanel2, MyPanel3: TPanel;
WelcomeLabel1, WelcomeLabel2, PageNameLabel,PageDescriptionLabel,SelectDirLabel,SelectDirBrowseLabel,DiskSpaceLabel, FinishedLabel, FinishedHeadingLabel: TLabel;
BitmapImage1: TBitmapImage;
procedure InitializeWizard();
begin
ExtractTemporaryFile('image1.bmp');
WizardForm.WizardBitmapImage2.Bitmap.LoadFromFile(ExpandConstant('{tmp}\image1.bmp'));
begin
MyPanel := TPanel.Create(WizardForm);
with MyPanel do
begin
Align := alClient;
Parent := WizardForm;
end;
begin
MyPanel2 := TPanel.Create(WizardForm);
with MyPanel2 do
begin
Align := alClient;
Parent := WizardForm;
end;
begin
MyPanel3 := TPanel.Create(WizardForm);
with MyPanel3 do
begin
Align := alClient;
Parent := WizardForm;
end;
with WizardForm.WizardBitmapImage do
begin
Align := alClient;
Parent := MyPanel;
end;
with WizardForm.WizardBitmapImage2 do
begin
Align := alClient;
Parent := MyPanel2;
end;
BitmapImage1 := TBitmapImage.Create(WizardForm);
with BitmapImage1 do
begin
Parent := MyPanel3;
Align := alClient;
ExtractTemporaryFile('Image2.bmp');
Bitmap.LoadFromFile(ExpandConstant('{tmp}\Image2.bmp'));
end;
WelcomeLabel1:= TLabel.Create(WizardForm);
WelcomeLabel1.AutoSize:= False;
with WizardForm.WelcomeLabel1 do
WelcomeLabel1.SetBounds(Left, Top, Width, Height);
WelcomeLabel1.Font:= WizardForm.WelcomeLabel1.Font
WelcomeLabel1.Font.Color:= clWhite;
WelcomeLabel1.Transparent:= True;
WelcomeLabel1.WordWrap:= true;
WelcomeLabel1.Caption:= WizardForm.WelcomeLabel1.Caption;
WelcomeLabel1.Parent:= MyPanel;
WelcomeLabel2:= TLabel.Create(WizardForm);
WelcomeLabel2.AutoSize:= False;
with WizardForm.WelcomeLabel2 do
WelcomeLabel2.SetBounds(Left, Top, Width, Height);
WelcomeLabel2.Font:= WizardForm.WelcomeLabel2.Font
WelcomeLabel2.Font.Color:= clWhite;
WelcomeLabel2.Transparent:= True;
WelcomeLabel2.WordWrap:= true;
WelcomeLabel2.Caption:= WizardForm.WelcomeLabel2.Caption;
WelcomeLabel2.Parent:= MyPanel;
PageNameLabel:= TLabel.Create(WizardForm);
PageNameLabel.AutoSize:= False;
with WizardForm.PageNameLabel do
PageNameLabel.SetBounds(WizardForm.PageNameLabel.Left, WizardForm.PageNameLabel.Top, WizardForm.PageNameLabel.Width, WizardForm.PageNameLabel.Height);
PageNameLabel.Font:= WizardForm.PageNameLabel.Font
PageNameLabel.Font.Color:= clWhite;
PageNameLabel.Transparent:= True;
PageNameLabel.WordWrap:= true;
PageNameLabel.Caption:= WizardForm.PageNameLabel.Caption;
PageNameLabel.Parent:= MyPanel3;
PageDescriptionLabel:= TLabel.Create(WizardForm);
PageDescriptionLabel.AutoSize:= False;
with WizardForm.PageDescriptionLabel do
PageDescriptionLabel.SetBounds(WizardForm.PageDescriptionLabel.Left, WizardForm.PageDescriptionLabel.Top, WizardForm.PageDescriptionLabel.Width, WizardForm.PageDescriptionLabel.Height);
PageDescriptionLabel.Font:= WizardForm.PageDescriptionLabel.Font
PageDescriptionLabel.Font.Color:= clWhite;
PageDescriptionLabel.Transparent:= True;
PageDescriptionLabel.WordWrap:= true;
PageDescriptionLabel.Caption:= WizardForm.PageDescriptionLabel.Caption;
PageDescriptionLabel.Parent:= MyPanel3;
SelectDirLabel:= TLabel.Create(WizardForm);
SelectDirLabel.AutoSize:= False;
with WizardForm.SelectDirLabel do
SelectDirLabel.SetBounds(44, 70, WizardForm.SelectDirLabel.Width, WizardForm.SelectDirLabel.Height);
SelectDirLabel.Font:= WizardForm.SelectDirLabel.Font
SelectDirLabel.Font.Color:= clWhite;
SelectDirLabel.Transparent:= True;
SelectDirLabel.WordWrap:= true;
SelectDirLabel.Caption:= WizardForm.SelectDirLabel.Caption;
SelectDirLabel.Parent:= MyPanel3;
SelectDirBrowseLabel:= TLabel.Create(WizardForm);
SelectDirBrowseLabel.AutoSize:= False;
with WizardForm.SelectDirBrowseLabel do
SelectDirBrowseLabel.SetBounds(44, 100, WizardForm.SelectDirBrowseLabel.Width, WizardForm.SelectDirBrowseLabel.Height);
SelectDirBrowseLabel.Font:= WizardForm.SelectDirBrowseLabel.Font
SelectDirBrowseLabel.Font.Color:= clWhite;
SelectDirBrowseLabel.Transparent:= True;
SelectDirBrowseLabel.WordWrap:= true;
SelectDirBrowseLabel.Caption:= WizardForm.SelectDirBrowseLabel.Caption;
SelectDirBrowseLabel.Parent:= MyPanel3;
DiskSpaceLabel:= TLabel.Create(WizardForm);
DiskSpaceLabel.AutoSize:= False;
with WizardForm.DiskSpaceLabel do
DiskSpaceLabel.SetBounds(44, 290, WizardForm.DiskSpaceLabel.Width, WizardForm.DiskSpaceLabel.Height);
DiskSpaceLabel.Font:= WizardForm.DiskSpaceLabel.Font
DiskSpaceLabel.Font.Color:= clWhite;
DiskSpaceLabel.Transparent:= True;
DiskSpaceLabel.WordWrap:= true;
DiskSpaceLabel.Caption:= WizardForm.DiskSpaceLabel.Caption;
DiskSpaceLabel.Parent:= MyPanel3;
WizardForm.DirEdit.Left:= ScaleX(44);
WizardForm.DirEdit.Top:=ScaleY(120);
WizardForm.DirEdit.Width:=wizardForm.DirEdit.Width;
WizardForm.DirEdit.Height:=WizardForm.DirEdit.Height;
WizardForm.DirEdit.Color:=clred
WizardForm.DirEdit.Font.Color:=WizardForm.DirEdit.Font.Color;
WizardForm.DirEdit.Parent:= MyPanel3
WizardForm.DirBrowseButton.Left:=ScaleX(385);
WizardForm.DirBrowseButton.Top:=ScaleY(120);
WizardForm.DirBrowseButton.Width:=WizardForm.DirBrowseButton.Width;
WizardForm.DirBrowseButton.Height:=WizardForm.DirBrowseButton.Height;
WizardForm.DirBrowseButton.Parent:= MyPanel3;
FinishedHeadingLabel:= TLabel.Create(WizardForm);
FinishedHeadingLabel.AutoSize:= False;
with WizardForm.FinishedHeadingLabel do
FinishedHeadingLabel.SetBounds(Left, Top, Width, Height);
FinishedHeadingLabel.Font:= WizardForm.FinishedHeadingLabel.Font
FinishedHeadingLabel.Font.Color:= clWhite;
FinishedHeadingLabel.Transparent:= True;
FinishedHeadingLabel.WordWrap:= true;
FinishedHeadingLabel.Caption:= WizardForm.FinishedHeadingLabel.Caption;
FinishedHeadingLabel.Parent:= MyPanel2;
FinishedLabel:= TLabel.Create(WizardForm);
FinishedLabel.AutoSize:= False;
with WizardForm.FinishedLabel do
FinishedLabel.SetBounds(Left, Top, Width, Height);
FinishedLabel.Font:= WizardForm.FinishedLabel.Font
FinishedLabel.Font.Color:= clWhite;
FinishedLabel.Transparent:= True;
FinishedLabel.WordWrap:= true;
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
FinishedLabel.Parent:= MyPanel2;
WizardForm.WelcomeLabel1.Hide;
WizardForm.WelcomeLabel2.Hide;
WizardForm.FinishedLabel.Hide;
WizardForm.FinishedHeadingLabel.Hide;
WizardForm.SelectDirLabel.Hide
WizardForm.SelectDirBrowseLabel.Hide
WizardForm.MainPanel.Hide
WizardForm.Bevel.Hide
WizardForm.Bevel1.Hide
WizardForm.NextButton.BringToFront;
WizardForm.backButton.BringToFront;
WizardForm.CancelButton.BringToFront;
end;
end;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
PageNameLabel.Caption:=WizardForm.PageNameLabel.Caption
PageDescriptionLabel.Caption:=WizardForm.PageDescriptionLabel.Caption
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
MyPanel.Hide;
if CurPageID = wpWelcome then
MyPanel.Show;
MyPanel2.Hide;
if CurPageID = wpfinished then
MyPanel2.Show;
MyPanel3.Hide;
if CurPageID = wpselectdir then
MyPanel3.Show;
end;
[/more] без панели внизу.