inno-setup - 在 Inno Setup License 页面上,将复选框替换为“我同意”按钮
问题描述
我想把“我接受协议” / “不接受”的复选框去掉,把“下一步”按钮的文字换成一个简单的“我同意”,毕竟看起来更清晰直接。
你能指点我一些样本或在哪里查看文档吗?
解决方案
正如@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;
推荐阅读
- python - 为什么 pygame.sprite 在我的课程中导致“最大递归深度”?
- ios - 我在 App Store 上上传 Flutter 应用时遇到了这个问题
- resources - 如何在每次模拟运行中导出资源池(忙碌状态)
- sql - 如何按月和年分组,然后按日期作为 SQL 中的日期格式排序?
- python - 如何使用 MongoDB 制作提醒命令?不和谐.py
- nginx - 为什么我的 Nginx 配置没有缓存响应?
- python - 使用对象数据类型的 pandas 从 CSV 读取单元格
- c++ - 如何让用户在菜单选择中重新输入输入?
- python - python __eq__ 和 __hash__ 函数
- xslt - Saxonica EE Xslt 转换处理无限循环