首页 > 解决方案 > 在 Inno Setup License 页面上,将复选框替换为“我同意”按钮

问题描述

我想把“我接受协议” / “不接受”的复选框去掉,把“下一步”按钮的文字换成一个简单的“我同意”,毕竟看起来更清晰直接。

你能指点我一些样本或在哪里查看文档吗?

标签: inno-setup

解决方案


正如@Ken 指出的那样,如果您需要用户真正接受许可证,请不要这样做。作为点击,似乎只是一个“下一步”按钮,几乎不构成有意识的协议。

不同的是,当用户实际上不需要接受许可时,就像 GPL 的情况一样(它实际上明确禁止被要求接受)。那么你的方法可能没问题。除非您不应该将按钮更改为“我同意”

[Code]

procedure InitializeWizard();
begin
  { Hide radio buttons and pre-select "accept", to enable "next" button }
  WizardForm.LicenseAcceptedRadio.Checked := True;
  WizardForm.LicenseAcceptedRadio.Visible := False;
  WizardForm.LicenseNotAcceptedRadio.Visible := False;
  WizardForm.LicenseMemo.Height :=
    WizardForm.LicenseNotAcceptedRadio.Top + WizardForm.LicenseNotAcceptedRadio.Height -
    WizardForm.LicenseMemo.Top - ScaleY(5);
end;

procedure CurPageChanged(CurPageID: Integer);
begin
  { Dubious, but you have asked for it }
  if CurPageID = wpLicense then
  begin
    WizardForm.NextButton.Caption := '&I agree';
  end;
end;

在此处输入图像描述


推荐阅读