Inno Setup-更改页面名称和描述标签的大小 [英] Inno Setup - Change size of page name and description labels
本文介绍了Inno Setup-更改页面名称和描述标签的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用此解决方案:
显示图像在Inno Setup向导的顶部面板中,而不是页面标题和说明中
I'm using this solution:
Display image in top panel of Inno Setup wizard instead of page title and description
我想要这样设置参数:
WizardForm.WizardSmallBitmapImage.Visible := False;
WizardForm.PageDescriptionLabel.Color := clBlack;
WizardForm.PageNameLabel.Color := clBlack;
WizardForm.PageDescriptionLabel.Font.Color := clWhite;
WizardForm.PageNameLabel.Font.Color := clWhite;
但是...我不知道如何在标题和描述下使黑色背景更短.如您所见,黑色条带一直在脸上.可能吗?
but... i don't know how to make black backgrounds shorter under title and description. As you can see black strips going on to the face. It is possible at all?
我想要这样的东西:
我已经有这个了
推荐答案
要更改标签的宽度,请使用其.Width
属性.
To change labels width use theirs .Width
property.
procedure InitializeWizard();
begin
{ ... }
WizardForm.PageDescriptionLabel.Width :=
WizardForm.PageDescriptionLabel.Width - ScaleX(120);
WizardForm.PageNameLabel.Width :=
WizardForm.PageNameLabel.Width - ScaleX(120);
end;
或者您可以使标签透明:
Inno设置-页面名称和描述标签中文本下方的透明度
Or you can make the labels transparent:
Inno Setup - Transparency under text in page name and description labels
这篇关于Inno Setup-更改页面名称和描述标签的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文