Skip to content

Commit

Permalink
TInputDirWizardPage: Added new NewFolderName property to update the i…
Browse files Browse the repository at this point in the history
…nitial value passed to CreateInputDirPage.
  • Loading branch information
martijnlaan committed Aug 14, 2024
1 parent e5a2cdf commit 6510644
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions ISHelp/isxclasses.pas
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ TInputDirWizardPage = class(TWizardPage)
function Add(const APrompt: String): Integer;
property Buttons[Index: Integer]: TNewButton; read;
property Edits[Index: Integer]: TEdit; read;
property NewFolderName: String; read write;
property PromptLabels[Index: Integer]: TNewStaticText; read;
property SubCaptionLabel: TNewStaticText; read;
property Values[Index: Integer]: String; read write;
Expand Down
4 changes: 2 additions & 2 deletions ISHelp/isxclasses_wordlists_generated.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ interface
'Left', 'LicenseAcceptedRadio', 'LicenseLabel1', 'LicenseMemo', 'LicenseNotAcceptedRadio',
'LicensePage', 'Lines', 'MainPanel', 'Max', 'MaxHeight', 'MaxLength', 'MaxWidth', 'Min',
'MinHeight', 'MinItemHeight', 'MinWidth', 'ModalResult', 'Mode', 'Modified', 'Msg1Label',
'Msg2Label', 'MsgLabel', 'MultiSelect', 'Name', 'NextButton', 'NoIconsCheck', 'NoRadio',
'Notebook', 'Objects', 'Offset', 'OnActivate', 'OnBackButtonClick', 'OnCancelButtonClick',
'Msg2Label', 'MsgLabel', 'MultiSelect', 'Name', 'NewFolderName', 'NextButton', 'NoIconsCheck',
'NoRadio', 'Notebook', 'Objects', 'Offset', 'OnActivate', 'OnBackButtonClick', 'OnCancelButtonClick',
'OnChange', 'OnChanging', 'OnClick', 'OnClickCheck', 'OnClose', 'OnCloseQuery', 'OnCreate',
'OnDblClick', 'OnDeactivate', 'OnDestroy', 'OnDropDown', 'OnHide', 'OnKeyDown', 'OnKeyPress',
'OnKeyUp', 'OnLinkClick', 'OnNextButtonClick', 'OnRename', 'OnResize', 'OnShouldSkipPage',
Expand Down
1 change: 1 addition & 0 deletions Projects/Src/Compiler.ScriptClasses.pas
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ procedure RegisterInputDirWizardPage_C(CL: TPSPascalCompiler);
RegisterMethod('function Add(const APrompt: String): Integer');
RegisterProperty('Buttons', 'TNewButton Integer', iptr);
RegisterProperty('Edits', 'TEdit Integer', iptr);
RegisterProperty('NewFolderName', 'String', iptrw);
RegisterProperty('PromptLabels', 'TNewStaticText Integer', iptr);
RegisterProperty('SubCaptionLabel', 'TNewStaticText', iptr);
RegisterProperty('Values', 'String Integer', iptrw);
Expand Down
1 change: 1 addition & 0 deletions Projects/Src/Setup.ScriptDlg.pas
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ TInputDirWizardPage = class(TWizardPage)
property PromptLabels[Index: Integer]: TNewStaticText read GetPromptLabel;
property Values[Index: Integer]: String read GetValue write SetValue;
published
property NewFolderName: String read FNewFolderName write FNewFolderName;
property SubCaptionLabel: TNewStaticText read FSubCaptionLabel;
end;

Expand Down
3 changes: 2 additions & 1 deletion whatsnew.htm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
<li>Pascal Scripting changes:
<ul>
<li>Added new <tt>ExecAndCaptureOutput</tt> support function to execute a program or batch file and capture its <i>stdout</i> and <i>stderr</i> outputs separately.</li>
<li>Output logging now raises an exception if there was an error setting up output redirection (which should be very rare). The <i>PowerShell.iss</i> example script has been updated to catch the exception.</li>
<li>Output logging now raises an exception if there was an error setting up output redirection (which should be very rare). The <i>PowerShell.iss</i> example script has been updated to catch the exception.</li>
<li><tt>TInputDirWizardPage</tt>: Added new <tt>NewFolderName</tt> property to update the initial value passed to <tt>CreateInputDirPage</tt>.</li>
<li>Documented support functions <tt>VarArrayGet</tt> and <tt>VarArraySet</tt> which were already available but not documented.</li>
<li>Renamed the <tt>FileCopy</tt> support function to <tt>CopyFile</tt>. The old name is still supported, but it is recommended to update your scripts to the new name and the compiler will issue a warning if you don't.</li>
</ul>
Expand Down

0 comments on commit 6510644

Please sign in to comment.