I need to put a functional print button on the InfoBefore page created by the Inno Setup wizard. I learned that the following procedure works if you are putting the print button on the License page, but can't figure out how to adapt this code so I can do same thing on the InfoBefore page. I thought I could just substitute InfoBefore wherever License appears, and this appears to work except for an Identifier error on the PrintButton.Parent statement because there is no WizaredForm.InfoBeforeAcceptedRadio.Parent prperty class. I tried many other ways to modify this statement but none work.
Can anyone tell me how to modify these properties in below code so this will work on the InfoBefore page?? Here is my email: [email protected].
Code:procedure InitializeWizard(); var PrintButton: TButton; begin PrintButton := TButton.Create(WizardForm.LicensePage); PrintButton.Caption := '&Print'; PrintButton.Left := WizardForm.LicenseMemo.Left + WizardForm.LicenseMemo.Width - PrintButton.Width; PrintButton.Top := WizardForm.LicenseMemo.Top + WizardForm.LicenseMemo.Height + 16; PrintButton.OnClick := @PrintButtonClick; PrintButton.Parent := WizardForm.LicenseAcceptedRadio.Parent; end;




Reply With Quote