When designing GUI´s, I often have the following problem:
With checking a Checkbox you want to make some other controls editable or visible, by unchecking you want to undo the visibility and/or make the controls read only.
When pressing a button you want to first disable all buttons, to prevent the user to panic click another button, and if script is finished, you want to reenable the buttons.
In both cases you have a long block like:
$Control1.Visible = $true
$Control2.Visible = $true
$Control3.Visible = $true
$Button1.Enabled = $false
$Button2.Enabled = $false
$Button3.Enabled = $false
It would be nice, if there is a possibility, to mark the block, like the example above and have a right click feature called for example "Invert true/false". After that, all $true values will be $false and all $false will be $true.
Inverting $true and $false in marked text
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.
Re: Inverting $true and $false in marked text
Thank you for the suggestion. I will add it to the wish list.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.