страница , но только чтоб не прописывать в компонентах, а какбэ отдельная страница
Код:
Код: Выделить всё
[Setup]
AppName=My Program
AppVerName=My Program
DefaultDirName={pf}\My Program
OutputDir=userdocs:InnoSetupTest.
[Languages]
Name: russian; MessagesFile: compiler:Languages\Russian.isl;
[CustomMessages]
MyCheckListBox_Group1=Язык субтитров
MyCheckListBox_Group2=Язык озвучки
MyCheckListBox_Russian=Русский
MyCheckListBox_English=Английский
[code]
var
MyComponentPage: TWizardPage;
MyCheckListBox: TNewCheckListBox;
procedure GetMyComponentPage();
begin
MyComponentPage := CreateCustomPage(wpWelcome,
SetupMessage(msgWizardSelectComponents),
SetupMessage(msgSelectComponentsDesc));
with TNewStaticText.Create(WizardForm) do
begin
Width := WizardForm.InnerNotebook.Width;
WordWrap := True;
Caption := SetupMessage(msgSelectComponentsLabel2);
Parent := MyComponentPage.Surface;
end;
MyCheckListBox := TNewCheckListBox.Create(WizardForm);
with MyCheckListBox do
begin
Parent := MyComponentPage.Surface;
Top := ScaleY(48);
Width := WizardForm.InnerNotebook.Width;
Height := ScaleY(157);
AddCheckBox(ExpandConstant('{cm:MyCheckListBox_Group1}'),
'', 0, True, False, False, True, TStringList.Create);
AddRadioButton(ExpandConstant('{cm:MyCheckListBox_Russian}'),
'', 1, True, True, TStringList.Create);
AddRadioButton(ExpandConstant('{cm:MyCheckListBox_English}'),
'', 1, False, True, TStringList.Create);
AddCheckBox(ExpandConstant('{cm:MyCheckListBox_Group2}'), '',
0, True, False, False, True, TStringList.Create);
AddRadioButton(ExpandConstant('{cm:MyCheckListBox_Russian}'),
'', 1, True, True, TStringList.Create);
AddRadioButton(ExpandConstant('{cm:MyCheckListBox_English}'),
'', 1, False, True, TStringList.Create);
end;
end;
procedure InitializeWizard();
begin
GetMyComponentPage();
end;
