Quellcode durchsuchen

Inno Setup 6.4.3 increased the maximum width of all task dialogs by about 50%, which helps to keep long paths from being truncated with ellipses. It now only does this if the task dialog's content actually contains a path.

Martijn Laan vor 3 Monaten
Ursprung
Commit
2d42d6332e
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 2 1
      Projects/Src/Shared.TaskDialogFunc.pas
  2. 1 0
      whatsnew.htm

+ 2 - 1
Projects/Src/Shared.TaskDialogFunc.pas

@@ -47,7 +47,8 @@ begin
   if Assigned(TaskDialogIndirectFunc) then begin
     ZeroMemory(@Config, Sizeof(Config));
     Config.cbSize := SizeOf(Config);
-    Config.dwFlags := TDF_SIZE_TO_CONTENT;
+    if (StrPos(Text, ':\') <> nil) or (StrPos(Text, '\\') <> nil) then
+      Config.dwFlags := Config.dwFlags or TDF_SIZE_TO_CONTENT;
     if RightToLeft then
       Config.dwFlags := Config.dwFlags or TDF_RTL_LAYOUT;
     Config.hInstance := HInstance;

+ 1 - 0
whatsnew.htm

@@ -176,6 +176,7 @@ issigtool --key-file="MyKey.ispublickey" verify "MyProg.dll"</pre>
     </ul>
   </li>
   <li>Pascal Scripting change: Added new <tt>GetSHA256OfStream</tt> support function.</li>
+  <li>Inno Setup 6.4.3 increased the maximum width of all task dialogs by about 50%, which helps to keep long paths from being truncated with ellipses. It now only does this if the task dialog's content actually contains a path.</li>
   <li>All translations which still had an UTF-8 BOM had their BOM removed. Using a BOM in UTF-8 encoded files is not needed and not recommended since Inno Setup 6.3.0.</li>
   <li>Documentation improvements.</li>
   <li>Minor tweaks.</li>