Inverting $true and $false in marked text

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 7 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Blanke
Posts: 1
Last visit: Mon Aug 15, 2016 2:33 am

Inverting $true and $false in marked text

Post by Blanke »

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.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Inverting $true and $false in marked text

Post by davidc »

Thank you for the suggestion. I will add it to the wish list.
David
SAPIEN Technologies, Inc.
This topic is 7 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked