I have a TInputDirWizardPage created within InitializeWizard() e.g.
DataFolderPage: TInputDirWizardPage;
DataFolderPage := CreateInputDirPage(wpSelectDir, 'Caption', 'Description', 'Caption', True, 'mydatafolder');
I set the parameter AppendDir to True, at page creation.
Later on, at runtime, within function NextButtonClick() i decide that parameter AppendDir must be False but if i try to call Initialze(), compilation fails with message Unknown identifier ‘INITIALIZE’ e.g.
DataFolderPage.Caption := 'new caption'; // compiles ok
DataFolderPage.Initialize('new SubCaption', False, 'blah'); // Unknown identifier 'INITIALIZE'
Anyone knows why I cannot call method Initialize() again?
The
TInputDirWizardPageclass (and its bases classes) do not have a publicInitializemethod (See the Support Classes Reference in the help), and it has no property to set theAppendDirvalue.The best way to do this is to pass false to the page to not append the directory and add it yourself when you retrive the entered path from the page.