Код:
Код: Выделить всё
WizardForm.ComponentsList.LoadBGBmpFromBitmap(BGBitmapImage.Bitmap, WizardForm.ComponentsList.Left, WizardForm.ComponentsList.Top);Код: Выделить всё
WizardForm.ComponentsList.LoadBGBmpFromBitmap(BGBitmapImage.Bitmap, WizardForm.ComponentsList.Left, WizardForm.ComponentsList.Top);Код: Выделить всё
var
BGBitmapImage: TBitmapImage;
procedure InitializeWizard();
begin
ExtractTemporaryFile('BGImage.bmp');
BGBitmapImage := TBitmapImage.Create(WizardForm);
BGBitmapImage.Parent := WizardForm;
BGBitmapImage.Align := alClient;
BGBitmapImage.SendToBack;
BGBitmapImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\BGImage.bmp'))
with WizardForm.ComponentsList do
begin
//BorderStyle := bsNone;
Parent := WizardForm;
SetBounds(ScaleX(110), ScaleY(180), ScaleX(350), ScaleY(120));
Font.Color:=$FFFFFF;
Font.Name:='MS Sans Serif';
Font.Size:= 9;
TreeViewStyle := True;
WizardForm.ComponentsList.LoadBGBmpFromBitmap(BGBitmapImage.Bitmap, WizardForm.ComponentsList.Left, WizardForm.ComponentsList.Top);
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
WizardForm.ComponentsList.Hide;
BGBitmapImage.Hide;
case CurPageID of
wpSelectComponents:
begin
WizardForm.ComponentsList.Show;
BGBitmapImage.Show;
end;
end;
end;Код: Выделить всё
[Code]
procedure InitializeWizard();
begin
with WizardForm.ComponentsList do
begin
Parent := WizardForm.SelectTasksPage;
Width := ScaleX(193);
Top := ScaleY(37);
Height := ScaleY(168);
end;
with WizardForm.ComponentsDiskSpaceLabel do
begin
Parent := WizardForm.SelectTasksPage;
end;
with WizardForm.TypesCombo do
begin
Visible := False;
end;
with WizardForm.TasksList do
begin
Left := ScaleX(208);
Width := ScaleX(209);
end;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if(PageID =wpSelectComponents) then Result:= True;
end;
Код: Выделить всё
[Code]
procedure InitializeWizard();
begin
WizardForm.ComponentsList.Parent := WizardForm.SelectTasksPage;
WizardForm.ComponentsList.Width := ScaleX(193);
WizardForm.ComponentsList.Top := ScaleY(37);
WizardForm.ComponentsList.Height := ScaleY(168);
WizardForm.ComponentsDiskSpaceLabel.Parent := WizardForm.SelectTasksPage;
WizardForm.TypesCombo.Visible := False;
WizardForm.TasksList.Left := ScaleX(208);
WizardForm.TasksList.Width := ScaleX(209);
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if(PageID =wpSelectComponents) then Result:= True;
end;
Код: Выделить всё
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Components]
Name: a; Description: A
[Tasks]
Name: a; Description: A
[Code]
procedure RedesignWizardForm;
begin
WizardForm.ComponentsList.Parent := WizardForm.SelectTasksPage;
WizardForm.ComponentsList.Width := ScaleX(193);
WizardForm.ComponentsList.Top := ScaleY(37);
WizardForm.ComponentsList.Height := ScaleY(168);
WizardForm.ComponentsDiskSpaceLabel.Parent := WizardForm.SelectTasksPage;
WizardForm.TypesCombo.Visible := False;
WizardForm.TasksList.Left := ScaleX(208);
WizardForm.TasksList.Width := ScaleX(209);
end;
procedure InitializeWizard();
begin
RedesignWizardForm;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if(PageID =wpSelectComponents) then Result:= True;
end;
Код: Выделить всё
[Setup]
AppName=My Program
AppVerName=My Program v 1.5
DefaultDirName={pf}\My Program
OutputDir=.
[Tasks]
Name: task; Description: task;
[Components]
Name: component; Description: component; Types: full;
[Code]
procedure InitializeWizard();
begin
WizardForm.InnerNotebook.Hide;
WizardForm.TypesCombo.Hide;
WizardForm.ComponentsList.Parent := WizardForm;
WizardForm.ComponentsList.SetBounds(ScaleX(37), ScaleY(102), ScaleX(200), ScaleY(170));
WizardForm.ComponentsDiskSpaceLabel.Hide;
WizardForm.TasksList.Parent := WizardForm;
WizardForm.TasksList.SetBounds(ScaleX(WizardForm.ComponentsList.Left + 220), ScaleY(102), ScaleX(200), ScaleY(170));
WizardForm.TasksList.BorderStyle := bsSingle;
WizardForm.TasksList.Color := $FFFFFF;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
case PageID of
7: Result := True;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
WizardForm.ComponentsList.Hide;
WizardForm.TasksList.Hide;
case CurPageID of
9:
begin
WizardForm.ComponentsList.Show;
WizardForm.TasksList.Show;
end;
end;
end;
Код: Выделить всё
[Code]
var
PageComTasks: TWizardPage;
procedure InitializeWizard();
begin
PageComTasks := CreateCustomPage(wpSelectTasks, 'Caption', 'Description');
WizardForm.ComponentsList.Parent := PageComTasks.Surface;
WizardForm.ComponentsList.Width := ScaleX(193);
WizardForm.ComponentsList.Top := ScaleY(43);
WizardForm.ComponentsList.Height := ScaleY(168);
WizardForm.ComponentsDiskSpaceLabel.Parent := PageComTasks.Surface;
WizardForm.ComponentsDiskSpaceLabel.AutoSize := True;
WizardForm.TasksList.Parent := PageComTasks.Surface;
WizardForm.TasksList.Left := ScaleX(208);
WizardForm.TasksList.Width := ScaleX(209);
WizardForm.TasksList.Top := ScaleY(43);
WizardForm.SelectComponentsLabel.Parent := PageComTasks.Surface;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if(PageID =wpSelectComponents) or(PageID =wpSelectTasks) then Result:= True;
end;