Insert(Index: Integer; Page: IWizardPage);
Index is a parameter that determines index of the page that is inserted in the wizard.
Page is a parameter that determines the page that should be inserted in the Wizard component.
The Insert method allows to insert the wizard page in the position that is passed as the Index input parameter. The page is passed as the Sheet input parameter.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
PageWiz: IWizardPage;
Lab: ILabel;
Begin
PageWiz := New WizardPage.Create;
Lab := New Label.Create;
Lab.Text := "The First Page";
Wizard1.Pages.Insert(0, PageWiz);
Lab.Parent := Wizard1.Pages.Item(0);
End Sub Button1OnClick;
After pressing the Button1 button the first page with the First Page inscription is inserted in the wizard.
See also: