1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
var
Page : TWizardPage;
Windows : TCheckBox;
procedure RPage;
begin
Page := CreateCustomPage(wpInstalling, 'Personnalisation','');
Windows := TCheckBox.Create(Page);
Windows.Top := ScaleY(8);
Windows.Width := Page.SurfaceWidth;
Windows.Height := ScaleY(17);
Windows.Caption := 'Démarrer le programme en même temps que Windows';
Windows.Checked := True;
Windows.Parent := Page.Surface;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
begin
case Curpageid of
100 :
begin
if Windows .State= cbUnchecked then msgbox('unchecked',mbError, MB_OK);
if Windows .State= cbchecked then msgbox('checked',mbError, MB_OK);
end;
end;
result := True;
end;
procedure InitializeWizard();
begin
RPage;
end; |
Partager