I want to have two buttons in my installer screen, both should end up taking the user to the next screen but each performs it's own side-logic. Is it possible to have two NextButtons that both take you to the next screen but execute different code? Failing that, is there a way how to call WizardForm.NextButton programatically?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes.
WizardForm.NextButton.OnClick(WizardForm.NextButton);
回答2:
Keith, from a usability perspective, have you considered one next button and two radio buttons instead? The user selects the desired side logic via the radio buttons and then proceeds by clicking the next button. The radio button for the default side logic can already be pre-selected so most of the time the user just clicks next. This is at least how I would expect an Installer to behave if I was installing software.