Skip to content

Commit

Permalink
Begin dismantling TMainForm and WindowVisible=yes.
Browse files Browse the repository at this point in the history
Enough is enough. Making WizardForm the main form so that Application.MainFormOnTaskBar=True can be set is long overdue.
  • Loading branch information
jordanrussell authored Dec 14, 2024
1 parent ae47692 commit 1f9aa41
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions Projects/Src/Compiler.SetupCompiler.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2579,30 +2579,11 @@ procedure TSetupCompiler.EnumSetupProc(const Line: PChar; const Ext: Integer);
ssASLRCompatible: begin
ASLRCompatible := StrToBool(Value);
end;
ssBackColor: begin
try
SetupHeader.BackColor := StringToColor(Value);
except
Invalid;
end;
end;
ssBackColor2: begin
try
SetupHeader.BackColor2 := StringToColor(Value);
except
Invalid;
end;
end;
ssBackColorDirection: begin
if CompareText(Value, 'toptobottom') = 0 then
Exclude(SetupHeader.Options, shBackColorHorizontal)
else if CompareText(Value, 'lefttoright') = 0 then
Include(SetupHeader.Options, shBackColorHorizontal)
else
Invalid;
end;
ssBackColor,
ssBackColor2,
ssBackColorDirection,
ssBackSolid: begin
BackSolid := StrToBool(Value);
WarningsList.Add(Format(SCompilerEntryObsolete, ['Setup', KeyName]));
end;
ssChangesAssociations: begin
SetupHeader.ChangesAssociations := Value;
Expand Down Expand Up @@ -3153,17 +3134,11 @@ procedure TSetupCompiler.EnumSetupProc(const Line: PChar; const Ext: Integer);
if not StrToVersionNumbers(Value, VersionInfoVersion) then
Invalid;
end;
ssWindowResizable: begin
SetSetupHeaderOption(shWindowResizable);
end;
ssWindowShowCaption: begin
SetSetupHeaderOption(shWindowShowCaption);
end;
ssWindowStartMaximized: begin
SetSetupHeaderOption(shWindowStartMaximized);
end;
ssWindowResizable,
ssWindowShowCaption,
ssWindowStartMaximized,
ssWindowVisible: begin
SetSetupHeaderOption(shWindowVisible);
WarningsList.Add(Format(SCompilerEntryObsolete, ['Setup', KeyName]));
end;
ssWizardImageAlphaFormat: begin
if CompareText(Value, 'none') = 0 then
Expand Down

1 comment on commit 1f9aa41

@martijnlaan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

Please sign in to comment.