-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.ps1
More file actions
62 lines (52 loc) · 2.52 KB
/
Copy pathexamples.ps1
File metadata and controls
62 lines (52 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Import-Module .\PSDialog.psm1
# TextBox Example
# dialogTextBox $title $text $width $height
$title = "TextBox Example"
$text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
dialogTextBox $title $text 30 20
# InfoBox Example
# dialogInfoBox $title $text $width $height
$title = "TextBox Example"
$text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
dialogInfoBox $title $text 30 20
Start-Sleep -s 5
cls
# InputBox Example
# dialogInputBox $title $width $height
$title = "InputBox Example"
$x = dialogInputBox $title 30 6
$x
Start-Sleep -s 3
# InputPasswordBox Example
# dialogInputBox $title $width $height
$title = "InputPasswordBox Example"
$x = dialogInputPasswordBox $title 30 6
$x
Start-Sleep -s 3
# MenuBox Example
# dialogMenuBox $title $items $width $height
$title = "MenuBox Example"
$items = [ordered]@{"1" = "Item 1"; "2" = "Item 2"; "3" = "Item 3"; "4" = "Item 4"}
$x = dialogMenuBox $title $items 20 10
$x
Start-Sleep -s 3
# MultiselectBox Example
#dialogMultiselectBox $title $items $width $height
$title = "MultiselectBox Example"
$items = [ordered]@{"1" = "Item 1"; "2" = "Item 2"; "3" = "Item 3"; "4" = "Item 4"}
$x = dialogMultiselectBox $title $items 20 10
$x
Start-Sleep -s 3
# RadioButtonBox Example
# dialogRadioButtonBox $title $items $width $height
$title = "RadioButtonBox Example"
$items = [ordered]@{"1" = "Item 1"; "2" = "Item 2"; "3" = "Item 3"; "4" = "Item 4"}
$x = dialogRadioButtonBox $title $items 20 10
$x
Start-Sleep -s 3
# ConfirmationTextBox Example
# dialogConfirmationTextBox $title $text $width $height $ok
$title = "TextBox Example"
$text = "Change buttom by TAB key and confirm by Enter key"
$x = dialogConfirmationTextBox $title $text 30 20 $true
$x