I am customizing one of the Wizard Pages to add a few check boxes. I am adding the checkbox by calling DesiredPageId := PageFromID(<wpXXX>)
and specifying ChkBox.Parent := DesiredPageId
. Now, is there a way to access the state of such a check box in NextButtonClick()
without having the checkbox control as global ?
I do see examples like the following but in those cases the control (Radio button / Checkbox) is global and hence accessible anywhere.
- Get radio button value [INNO SETUP]
- How can I add a CheckBox for optional files during install? (innosetup)
One way could be to associate an OnClick
function in which a state variable is updated (again, global) and the same is accessed in NextButtonClick()
. Is there any other solution ?