@@ -292,22 +292,17 @@ begin
292
292
UninstallNextButton.ModalResult := mrOK;
293
293
end ;
294
294
295
- procedure UninstallNextButtonClick (Sender: TObject);
296
- begin
297
- if UninstallProgressForm.InnerNotebook.ActivePage = UninstallPollPage then
298
- begin
299
- UninstallNextButton.Visible := False;
300
- end ;
301
- end ;
302
-
303
295
procedure InitializeUninstallProgressForm ();
304
296
var
305
297
PageText: TNewStaticText;
306
298
PageNameLabel: string;
307
299
PageDescriptionLabel: string;
308
- TestCheckBox: TNewCheckBox;
309
300
CancelButtonEnabled: Boolean;
310
- CancelButtonModalResult: Integer;
301
+ CancelButtonModalResult: Integer;
302
+ // CouldntMakeItWorkOption: TNewCheckBox;
303
+ // DidntDoWhatIWantedOption: TNewCheckBox;
304
+ Checklist: TNewCheckListBox;
305
+ CommentsBox: TNewMemo;
311
306
begin
312
307
if not UninstallSilent then
313
308
begin
@@ -326,12 +321,38 @@ begin
326
321
PageText.AutoSize := False;
327
322
PageText.ShowAccelChar := False;
328
323
PageText.Caption := ' Press Uninstall to proceeed with uninstallation.' ;
329
-
330
- TestCheckBox := TNewCheckBox.Create(UninstallProgressForm);
331
- TestCheckBox.Parent := UninstallPollPage;
332
- TestCheckBox.Top = PageText.Top + PageText.Height + 10 ;
333
- TestCheckBox.Left = PageText.Left;
334
- TestCheckBox.Caption := ' Test Fooooo' ;
324
+
325
+ // https://stackoverflow.com/a/44254371/1086121
326
+
327
+ {
328
+ CouldntMakeItWorkOption := TNewCheckBox.Create(UninstallProgressForm);
329
+ CouldntMakeItWorkOption.Parent := UninstallPollPage;
330
+ CouldntMakeItWorkOption.Top := PageText.Top + PageText.Height + ScaleX(10);
331
+ CouldntMakeItWorkOption.Left := PageText.Left;
332
+ CouldntMakeItWorkOption.Caption := 'I couldn''t get Syncthing to work';
333
+
334
+ DidntDoWhatIWantedOption := TNewCheckBox.Create(UninstallProgressForm);
335
+ DidntDoWhatIWantedOption.Parent := UninstallPollPage;
336
+ DidntDoWhatIWantedOption.Top := CouldntMakeItWorkOption.Top + CouldntMakeItWorkOption.Height + ScaleX(10);
337
+ DidntDoWhatIWantedOption.Left := PageText.Left;
338
+ DidntDoWhatIWantedOption.Caption := 'Syncthing doesn''t do what I wanted';
339
+ }
340
+
341
+ Checklist := TNewCheckListBox.Create(UninstallProgressForm);
342
+ Checklist.Parent := UninstallPollPage;
343
+ Checklist.SetBounds(PageText.Left, PageText.Top + PageText.Height + ScaleY(10 ), PageText.Width, ScaleY(50 ));
344
+ Checklist.BorderStyle := bsNone;
345
+ Checklist.Color := clBtnFace;
346
+ Checklist.WantTabs := True;
347
+ Checklist.MinItemHeight := ScaleY(20 );
348
+
349
+ Checklist.AddCheckBox(' Test Caption' , ' ' , 0 , False, True, False, False, nil );
350
+ Checklist.AddCheckBox(' Another Test Caption' , ' ' , 0 , False, True, False, False, nil );
351
+
352
+ CommentsBox := TNewMemo.Create(UninstallProgressForm);
353
+ CommentsBox.Parent := UninstallPollPage;
354
+ CommentsBox.SetBounds(PageText.Left, Checklist.Top + Checklist.Height + ScaleY(10 ), PageText.Width, ScaleY(50 ));
355
+ CommentsBox.ScrollBars := ssVertical;
335
356
336
357
UninstallProgressForm.InnerNotebook.ActivePage := UninstallPollPage;
337
358
@@ -340,13 +361,10 @@ begin
340
361
341
362
UninstallNextButton := TNewButton.Create(UninstallProgressForm);
342
363
UninstallNextButton.Parent := UninstallProgressForm;
343
- UninstallNextButton.Left :=
344
- UninstallProgressForm.CancelButton.Left - UninstallProgressForm.CancelButton.Width -
345
- ScaleX(10 );
364
+ UninstallNextButton.Left := UninstallProgressForm.CancelButton.Left - UninstallProgressForm.CancelButton.Width - ScaleX(10 );
346
365
UninstallNextButton.Top := UninstallProgressForm.CancelButton.Top;
347
366
UninstallNextButton.Width := UninstallProgressForm.CancelButton.Width;
348
367
UninstallNextButton.Height := UninstallProgressForm.CancelButton.Height;
349
- UninstallNextButton.OnClick := @UninstallNextButtonClick;
350
368
351
369
UninstallProgressForm.CancelButton.TabOrder := UninstallNextButton.TabOrder + 1 ;
352
370
@@ -370,13 +388,6 @@ begin
370
388
end ;
371
389
end ;
372
390
373
- function InitializeUninstall (): Boolean;
374
- begin
375
- // UninstallPollPage := CreateInputOptionPage(
376
-
377
- Result := true;
378
- end ;
379
-
380
391
[UninstallDelete]
381
392
Type : files ; Name : " {app} \ProcessRunner.exe.old"
382
393
Type : files ; Name : " {app} \InstallCount.txt"
0 commit comments