在标准的"Inno设置"页面上添加其他控件? [英] Add additional controls to standard Inno Setup pages?
本文介绍了在标准的"Inno设置"页面上添加其他控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Inno Setup创建的文件夹选择对话框中添加复选框,如下图所示?
How to add checkbox to the folder selection dialog created by the Inno Setup which is shown below in the image?
这不是自定义对话框.它是由Inno Setup自动创建的.
This is not a custom dialog. It is created by the Inno Setup automatically.
推荐答案
将复选框的 Parent
属性设置为 WizardForm.SelectDirPage
:
Set the Parent
property of the checkbox to the WizardForm.SelectDirPage
:
var
Checkbox: TNewCheckBox;
procedure InitializeWizard();
begin
Checkbox := TNewCheckBox.Create(WizardForm.SelectDirPage);
Checkbox.Parent := WizardForm.SelectDirPage;
Checkbox.Top := WizardForm.DirEdit.Top + WizardForm.DirEdit.Height + ScaleY(8);
Checkbox.Left := WizardForm.DirEdit.Left;
Checkbox.Caption := 'My checkbox';
// See https://stackoverflow.com/q/30469660/850848
Checkbox.Height := ScaleY(Checkbox.Height);
end;
这篇关于在标准的"Inno设置"页面上添加其他控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文