【问题标题】:inno setup % percentage progress bar [closed]inno setup%百分比进度条[关闭]
【发布时间】:2012-11-06 00:26:32
【问题描述】:

任何人都知道如何将进度条的百分比放在进度条下方

例如:在 photoshop inno setup 5.5.1-unicode+Script ISDone 0.6 中编辑的图像,谢谢

【问题讨论】:

  • 我们为什么要帮你盗版?
  • 也许这只是现有安装程序的一个示例?

标签: inno-setup


【解决方案1】:

如果你想把百分比标签放在Installingwizard page上,那我觉得是不可能的。但是您可以使用CreateOutputProgressPage,它可以让您控制进度条,并且您可以通过 Pascal 脚本添加百分比标签。

[Code]
procedure InitializeWizard();
var
  Page: TOutputProgressWizardPage;
  PercentLabel: TLabel;
begin
  Page := CreateOutputProgressPage('Caption', 'Description');
  Page.ProgressBar.Show;
  PercentLabel := TLabel.Create(Page);
  PercentLabel.Top := Page.ProgressBar.Top + 20;
  PercentLabel.Caption := '0%';
  ...
end;

另请阅读此问题:Inno Setup Simple progress page for Run section。它演示了如何控制进度。

【讨论】:

  • 感谢splash但是没有修改我下来的地方但是数字的大小却没有Left: = ISDoneProgressBar1.Width ScaleX + (-150);顶部:= ScaleY ISDoneProgressBar1.Top + (100);
  • 从现在开始你可以使用新的CurInstallProgressChanged event来计算百分比了。
  • @TLama:感谢您的通知和您为此所做的工作!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-12-23
  • 1970-01-01
  • 1970-01-01
  • 2016-03-24
  • 1970-01-01
  • 2015-06-03
  • 2010-11-22
相关资源
最近更新 更多