Browse Source

Set PopupMode=pmAuto in CreateCustomForm support function.

Only really matters when a custom form displays another custom form.

Jordan Russell 8 tháng trước cách đây
mục cha
commit
fdf652b434
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Projects/Src/Setup.ScriptFunc.pas

+ 2 - 1
Projects/Src/Setup.ScriptFunc.pas

@@ -2,7 +2,7 @@ unit Setup.ScriptFunc;
 
 
 {
 {
   Inno Setup
   Inno Setup
-  Copyright (C) 1997-2024 Jordan Russell
+  Copyright (C) 1997-2025 Jordan Russell
   Portions by Martijn Laan
   Portions by Martijn Laan
   For conditions of distribution and use, see LICENSE.TXT.
   For conditions of distribution and use, see LICENSE.TXT.
 
 
@@ -291,6 +291,7 @@ var
     begin
     begin
       var NewSetupForm := TSetupForm.CreateNew(nil);
       var NewSetupForm := TSetupForm.CreateNew(nil);
       try
       try
+        NewSetupForm.PopupMode := pmAuto;
         NewSetupForm.AutoScroll := False;
         NewSetupForm.AutoScroll := False;
         NewSetupForm.BorderStyle := bsDialog;
         NewSetupForm.BorderStyle := bsDialog;
         NewSetupForm.InitializeFont;
         NewSetupForm.InitializeFont;