Inno Setup:如何更改背景颜色 [英] Inno Setup: How to change background color

查看:428
本文介绍了Inno Setup:如何更改背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将Inno Setup底部面板的背景颜色更改为白色?

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

感谢您的帮助!

推荐答案

您所描述的底部面板实际上是向导窗体的区域,因此,您可以仅设置 Color 属性code> WizardForm 对象本身:

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;

还有另外一件事值得一提;尽管上面的代码显示了如何根据您的要求将区域颜色设置为恒定的白色,但是您在屏幕快照上看到的白色实际上是Windows主题给出的颜色,因此颜色一定不能总是白色。因此,如果您的目标是与当前页面具有相同的颜色,那么您应该从父页面继承该颜色:

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;

这篇关于Inno Setup:如何更改背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆