var
ChkListBox,ChkListBox2: TNewCheckListBox;
BTN: TBitmapImage;
function IsChecked(const Index: Integer): Boolean;
begin
Result:= ChkListBox.Checked[Index]
end;
function IsChecked2(const Index: Integer): Boolean;
begin
Result:= ChkListBox2.Checked[Index]
end;
procedure InitializeWizard;
begin
BTN := TBitmapImage.Create(WizardForm);
BTN.Bitmap.LoadFromResourceName(HInstance, '_IS_BTN');
ChkListBox := TNewCheckListBox.Create(WizardForm);
with ChkListBox do begin
Parent := WizardForm.SelectDirPage;
SetBounds(ScaleX(0), ScaleY(110), ScaleX(250), ScaleY(90));
AddCheckBoxEx('Язык справки', '', 0, True, True, True, True, nil, True);
AddRadioButtonEx('Rus', '', 1, True, True, nil, False);
AddRadioButtonEx('Eng', '', 1, True, True, nil, True);
WantTabs := True;
ShowLines := True;
Font.Color := $2222b2;
Color := WizardForm.Color;
BorderStyle := bsNone;
LoadBtnBmpFromBitmap(BTN.Bitmap);
end;
ChkListBox2 := TNewCheckListBox.Create(WizardForm);
with ChkListBox2 do begin
Parent := WizardForm.SelectDirPage;
SetBounds(ScaleX(150), ScaleY(110), ScaleX(250), ScaleY(90));
AddCheckBoxEx('Язык справки', '', 0, True, True, True, True, nil, True);
AddRadioButtonEx('Rus', '', 1, True, True, nil, False);
AddRadioButtonEx('Eng', '', 1, True, True, nil, True);
WantTabs := True;
ShowLines := True;
Font.Color := $2222b2;
Color := WizardForm.Color;
BorderStyle := bsNone;
LoadBtnBmpFromBitmap(BTN.Bitmap);
end;
end;
[/SPOILER]