Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inno Setup: How to change background color

Is there a way to change the background color of the Inno Setup bottom panel to white color?

Thanks for your help!

InnoSetup Footer

like image 684
Emsi Avatar asked Mar 21 '14 11:03

Emsi


1 Answers

That bottom panel that you described is actually the area of the Wizard form, and so you can just set the Color property of the WizardForm object itself:

[Code]
procedure InitializeWizard;
begin
  WizardForm.Color := clWhite;
end;

There's yet one more thing worth mentioning; though the above code shows how to set that area color to a constant white as you asked, what you can see on your screenshot as white is actually a color given by the Windows theme, so that color must not always be white. So if your aim was to have the same color as the page you're currently on, then you should rather inherit the color from the parent pages:

[Code]
procedure CurPageChanged(CurPageID: Integer);
begin
  case CurPageID of
    wpWelcome: WizardForm.Color := WizardForm.WelcomePage.Color;
    wpFinished: WizardForm.Color := WizardForm.FinishedPage.Color;
  else
    WizardForm.Color := WizardForm.InnerPage.Color;
  end;
end;
like image 119
TLama Avatar answered Sep 27 '22 23:09

TLama