如何更改自定义页面上的下一个/取消按钮标题?

时间:2013-01-15 12:57:40

标签: inno-setup

如何更改自定义页面上的下一个/取消按钮标题?

1 个答案:

答案 0 :(得分:7)

您可以使用:

procedure CurPageChanged(CurPageID: Integer);
begin
  if CurPageID = YourPageName.ID then begin
    WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);  
//or := 'YourNewNextButtonText' or := ExpandConstant('{cm:YourCmTitleForNext}')
    WizardForm.CancelButton.Caption := ExpandConstant('{cm:YourCmTitleForCancel}');
  end; //begin + end to make changes only for this single page
end;