Changelog¶
v0.5.1 - 2022-06-26¶
Fixed¶
- missing messages, comments when using .NET style API. #21
v0.5.0 - 2022-06-01¶
Added¶
- compatibility with pwsh v7
- function
ConvertTo-AnyBoxPrompts, for building AnyBox prompts from function parameters - parameter
-PromptsFromFunc/-PromptsFromScriptblockfor displaying AnyBox of prompts for given function / scriptblock. - more examples and an interactive test
- aliases:
anybox=Show-AnyBox-i=-Icon-t=-Title-m=-Messages-c=-Comments-b=-Buttons-p=-Prompts-d=-GridData-f=-PromptsFromFunc-pb=-ProgressBar-bg=-BackgroundColor-fg=-FontColor-sec=-Timeout-count=-Countdown
v0.4.0 - 2019-06-11¶
Added¶
- Added ability to show indeterminate progress bar with switch parameter
-ProgressBar. - Added ability to show window only while a condition is
$truewith scriptblock parameter-While.- Requires the
ThreadJobmodule.
- Requires the
- Added
-WindowStartupLocationparameter to open window in a predefined location. - When a path is provided as the default value for prompts of type
FileOpen,FileSave, orFolderOpen, the dialog opens to the parent directory of the provided path.
Fixed¶
- Fixed ability to display a base64-encoded image passed to the
-Imageparameter. - Fixed selection return when
-SelectionModeisSingleCell.
v0.3.4 - 2019-03-08¶
Added¶
- Added
AnyBox.AnyBoxclass to provide a new interface for building AnyBox forms, as opposed to just function calls.
Changed¶
- Updated example app,
Process_Killer, to use the new class interface. - Resolved issue #8.
v0.3.3 - 2018-09-25¶
Removed¶
- Removed all default buttons presented along with
GridData; these buttons can be recreated by providing either "SaveGrid" or "ExploreGrid" to the new-TemplateparameterNew-AnyBoxButton. - Removed
-ShowCopyButtonfromShow-AnyBox, as it is now done like so:$b = New-AnyBoxButton -Template CopyMessage; Show-AnyBox -Message 'CopyMe' -Buttons $b.
Changed¶
- Fixed bug in
DefaultValuewhen used withValidateSetand a combo box (Issue #3). - The special function
Test-ValidInputused to show an error, if applicable, then return$trueor$false. Now,Test-ValidInputwill only return an object with propertiesIsValidandMessage.IsValidcontains$trueor$false, whileMessagecontains a friendly message to show the user. Now, developers can handle invalid input differently if desired. - Renamed
-HideGridSearchparameter to-NoGridSearchfor consistency, but it is aliased to the old name for compatibility. - Added 'Save' button to Process Killer example.
- The helper function
ConvertTo-Base64has been renamed toConvertFrom-ImageFile(#7, thanks Tonic8).
Added¶
- Added
-ToolTipparameter toNew-AnyBoxButton. - Added
FolderOpeninput type toNew-AnyBoxPrompt; Inspired by @kalivodv. - Added
-Collapsedparameter toNew-AnyBoxPrompt. - Added
-CollapsedGroupsparameter toShow-AnyBox.
v0.3.2 - 2018-09-04¶
Changed¶
- Module restructuring; huge thanks to @Chirishman! Hopefully this helps with #7.
v0.3.1 - 2018-08-05¶
Changed¶
- Minor bugfixes (issue #2)
- Corrections to examples.
v0.3.0 - 2018-03-04¶
Added¶
Added New-ABPrompt as an alias for New-AnyBoxPrompt. New parameters include:
-Tab: show prompts in a tab control view.-Group: group prompts in a group box.-FontSize,-FontFamily,-FontColor,-Alignment: allows the ability to have prompts of different sizes, colors, etc.-SetDisplay: controls how a set (specified by-ValidateSetis displayed). The default is a dropdown (combo) box, but users can specify 'Radio' or 'Radio_Wide'.-RadioGroup: When-SetDisplayis one of 'Radio' or 'Radio_Wide', each set of options in-ValidateSetis in one group. Use-RadioGroupto designate the group to which a set of radio buttons belongs.-Separate: When specified, a horizontal line is shown beneath the prompt.-Collapsible: When specified, the prompt is shown within a collapsible expander control.
New parameters for Show-AnyBox include:
-MaxHeight,-MaxWidth: used to control the maximum size of the window.-CollapsibleGroups: if specified and prompt group(s) are specified, the groups are placed in a collapsible expander control, rather than a group box.-AccentColor: controls the color of lines in group boxes, expander boxes, and separator lines.-InitScript: accepts a script block to run before the window is shown.
New function New-AnyBoxButton (alias New-ABButton) to wrap around the new object type AnyBox.Button. Parameters for this function include:
-Name: the unique key name for the button.-Text: the text to display on the button. If-Nameis not specified, the value for-Textserves as the key.-IsCancel: designates the button to serve as the cancel button.-IsDefault: designates the button to serve as the default button.-OnClick: accepts a script block to run when the button is clicked.
Changed¶
-ContentAlignmentnow defaults to 'Left'.-FontSizenow defaults to '12'.
v0.2.1 - 2018-03-12¶
Added¶
- Extended
AnyBox.Promptclass to includeNameproperty to use as an identifier in the output (defaults to "Input_#"). - Added
-Nameparameter to theAnyBox.Promptwrapper functionNew-AnyBoxPrompt.
v0.2 - 2018-03-11¶
Added¶
New-AnyBoxPromptfunction wrapper around theAnyBox.Promptclass. It includes a new parameter,-MessagePosition, which specifies whether to print the prompt message above or beside the input control (default='Top').- When
-GridDatais provided, DataGrid now fills all available space when window is resized. -GridAsListparameter as a shortcut forConvertTo-Long.
Fixed¶
- Checkbox prompts were being initialized with string 'False' instead of boolean
False
v0.1 - 2018-03-06¶
- Initial release