[英]Getting text from FinishedLabel in Inno Setup
我正在尝试创建一个TLabel
并从FinishedLabel
获取文本以在完成页面上显示自定义背景图像时显示文本的透明度。
我用FinishedHeadingLabel
做同样的事情并且完美地工作,但它不适用于FinishedLabel
,这是代码:
BottomFinishedLabel := TLabel.Create(WizardForm);
BottomFinishedLabel.Parent := WizardForm.FinishedLabel.Parent;
BottomFinishedLabel.Font := WizardForm.FinishedLabel.Font;
BottomFinishedLabel.Caption := WizardForm.FinishedLabel.Caption;
BottomFinishedLabel.WordWrap := WizardForm.FinishedLabel.WordWrap;
InheritBoundsRect(WizardForm.FinishedLabel, BottomFinishedLabel);
WizardForm.FinishedLabel.Visible := False;
这是它显示的内容:
您可能过早地复制了文本。
FinishedLabel
仅在CurStepChanged(ssPostInstall)
之后设置。
即最早您可以在CurPageChanged(wpFinished)
(或ShouldSkipPage(wpFinished)
)中阅读它。
如果你知道的文字说明了什么变异,你也可以阅读msgFinishedRestartLabel
, msgFinishedLabel
或msgFinishedLabelNoIcons
+ msgClickFinish
使用SetupMessage
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.