【发布时间】:2014-03-04 02:15:24
【问题描述】:
我需要一个简单的东西:有提前和正常安装按钮。对于正常情况,这很简单——我使用默认的下一步按钮和 NextButtonClick 上的一些逻辑来设置条件变量并使用 ShouldSkipPage 跳过一些页面。然而,对于高级设置,我创建了一个新按钮,点击后我需要做的就是打开下一个安装程序页面:
procedure CurPageChanged(CurPageID : Integer);
begin
if CurPageID = wpWelcome then begin
AdvancedButton := TButton.Create(WizardForm);
AdvancedButton.Caption := 'Advanced Install';
AdvancedButton.Left := WizardForm.InfoAfterPage.Left + 10;
AdvancedButton.Top := WizardForm.InfoAfterPage.Height + 88;
AdvancedButton.Parent := WizardForm.NextButton.Parent;
# AdvancedButton.OnClick := What shall I call to open say next page (or some page by given PageID value)
end
else begin
AdvancedButton.Visible := False;
end;
end;
那么我应该调用什么来打开按钮单击时的下一页(或给定 PageID 值的某些页面)(在 Inno API 中找不到任何 NextPage 或某些 SetPage 函数)?
【问题讨论】:
-
OT:首先在控件创建后将
Parent属性设置为控件。最好这样做,因为您可能希望通过其父级应用控件对齐,并且您可能会在分配父级之前错误地添加此类行。
标签: windows installation inno-setup pascal