Add(Sheet: IWizardPage);
Sheet. Input parameter that determines the added page.
The Add method adds a page to the collection of wizard pages.
The page is passed as the Sheet input parameter. All added pages are placed at the end of the collection.
Executing the example requires a form, the Button1 button on the form, and the Wizard component named Wizard1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
PageWiz: IWizardPage;
Lab: ILabel;
Begin
PageWiz := New WizardPage.Create;
Lab := New Label.Create;
Lab.Text := "Last page";
Lab.Parent := PageWiz;
Wizard1.Pages.Add(PageWiz);
End Sub Button1OnClick;
After clicking the Button1 button a page with the Last Page label is added to the wizard.
See also: