Skip to content

Commit 9e95ed8

Browse files
2.7.7
1 parent 437412e commit 9e95ed8

File tree

6 files changed

+139
-13
lines changed

6 files changed

+139
-13
lines changed

Designer/Designer.ps1

Lines changed: 114 additions & 4 deletions
Large diffs are not rendered by default.

Designer/Events.ps1

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ SOFTWARE.
8181
FileName: Designer.ps1
8282
Modified: Brandon Cunningham
8383
Created On: 1/15/2020
84-
Last Updated: 5/8/2025
85-
Version: 2.7.6
84+
Last Updated: 5/9/2025
85+
Version: 2.7.7
8686
===========================================================================
8787
8888
.DESCRIPTION
@@ -492,10 +492,18 @@ SOFTWARE.
492492
2.7.5 5/5/2025
493493
Fixed #30 I found an error here. Thake a lokk tnx
494494
Fixed #31 [int] instead of [System.IntPtr] correction
495-
495+
496496
2.7.6 5/8/2025
497497
Fixed Debugging not working in powershell 7+ #29
498498
499+
2.7.7 5/9/2026
500+
Fixed #37 Recent change broke module load. Bad publish
501+
Fixed #36 Hotkey Issue [string]$ModifierVirtualKeys
502+
Fixed #35 Add-CommonControl dependency needed for Add-Hotkey
503+
Partial fix of #34 Add alias's for VDS (DialogShell) compatibility
504+
Fixed #32 Problem loading values that are notated by % after saving, attibutes like 'Opacity'
505+
506+
499507
BASIC MODIFICATIONS License
500508
Original available at https://www.pswinformscreator.com/ for deeper comparison.
501509
@@ -590,6 +598,10 @@ SOFTWARE.
590598
$objRef.Changes[$controlName] = @{}
591599
}
592600
if ($null -ne $($newControl.$($_.ToString()))){
601+
if ($_.ToString() -eq 'Opacity'){
602+
$n = $_.Value.split('%')
603+
$_.Value = "$($n[0]/100)"
604+
}
593605
if ($_.ToString() -eq 'Size'){
594606
$n = $_.Value.split(',')
595607
$n[0] = [math]::Round(($n[0]/1) * $ctscale)

PSGetModuleInfo.xml

0 Bytes
Binary file not shown.

functions/Dependencies.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ $functionTimer.Add_Tick({
88
if ($script:debugging -eq $true) {
99
$functionTimer.Interval = 60000
1010
}
11+
if ($lst_Functions.GetItemChecked($lst_Functions.Items.IndexOf("Add-Hotkey")) -eq $True) {
12+
$lst_Functions.SetItemChecked($lst_Functions.Items.IndexOf("Add-CommonControl"), $true)
13+
}
1114
if ($lst_Functions.GetItemChecked($lst_Functions.Items.IndexOf("Set-WindowNotOnTop")) -eq $True) {
1215
$lst_Functions.SetItemChecked($lst_Functions.Items.IndexOf("Get-WindowPosition"), $true)
1316
}

functions/functions.psm1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,14 @@ function Add-Hotkey {
536536
The use of this function REQUIRES the event to be caught by the
537537
hotkeyEvent function which processes the event by hotkey index.
538538
#>
539-
[Alias("Hotkey-Add")]
539+
[Alias("Hotkey-Add","Hotkey")]
540540
[CmdletBinding()]
541541
param (
542542
[Parameter(Mandatory,
543543
ValueFromPipeline)]
544544
[vdsForm]$Form,
545545
[Parameter(Mandatory)]
546546
[int]$RegisterIndex,
547-
[Parameter(Mandatory)]
548547
[string]$ModifierVirtualKeys,
549548
[Parameter(Mandatory)]
550549
[string]$VirtualKey
@@ -4369,7 +4368,7 @@ function Get-PowerShellDesignerVersion {
43694368
.EXAMPLE
43704369
$PSDVersion = Get-PowerShellDesignerVersion
43714370
#>
4372-
return '2.7.5'
4371+
return '2.7.7'
43734372
}
43744373

43754374
function Get-PowerShellVersion {
@@ -6748,6 +6747,7 @@ function New-Taskicon {
67486747
.OUTPUTS
67496748
System Windows Forms Taskicon
67506749
#>
6750+
[Alias("taskicon")]
67516751
[CmdletBinding()]
67526752
param (
67536753
[Parameter(Mandatory,
@@ -6797,6 +6797,7 @@ function New-Timer {
67976797
.OUTPUTS
67986798
System.Windows.Forms.Timer
67996799
#>
6800+
[Alias("Timer")]
68006801
[CmdletBinding()]
68016802
param (
68026803
[Parameter(Mandatory,
@@ -9775,7 +9776,7 @@ function Show-PageSetupDialog {
97759776
97769777
.OUTPUTS
97779778
String
9778-
#
9779+
#>
97799780
[Alias("Filedlg")]
97809781
[CmdletBinding()]
97819782
param (
@@ -9789,7 +9790,7 @@ function Show-PageSetupDialog {
97899790
$filedlg.ShowDialog() | Out-Null
97909791
return $filedlg.FileName
97919792
}
9792-
#>
9793+
97939794

97949795
function Show-SaveFileDialog {
97959796
<#

powershell-designer.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>powershell-designer</id>
5-
<version>2.7.5</version>
5+
<version>2.7.7</version>
66
<authors>Brandon Cunningham</authors>
77
<owners>Brandon Cunningham</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

0 commit comments

Comments
 (0)