Gui buttons grayed outs in all tabpanels

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
mikarin
Posts: 8
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Sat Jan 25, 2020 5:51 am

Gui buttons grayed outs in all tabpanels

Post by mikarin »

Hi all

I was working a gui form which has some buttons and all were working seamlessly. The last thing what i did that i moved a button to another tab. After that, when i run the Gui as a package exe or run in console, all buttons were grayed out. Maybe issue is not related about it but till that movement, everything was working.
-deleted package and created new one didn`t work out.
-Sapien 2012
-Running on VM 2012 R2
https://codeshare.io/2p4pe4


What to be done in this case?
Attachments
2020-05-05_16h00_51.png
2020-05-05_16h00_51.png (114.08 KiB) Viewed 127 times
2020-05-05_16h00_07.png
2020-05-05_16h00_07.png (108.87 KiB) Viewed 127 times
2020-05-05_15h57_35.png
2020-05-05_15h57_35.png (18.76 KiB) Viewed 127 times

jvierra
Posts: 14358
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Gui buttons grayed outs in all tabpanels

Post by jvierra »

Sorry but I don't see where the buttons are "grayed out". The buttons all look normal.

What is "Sapien 2012"?

There is no way that moving a button could do this alone. Have you tried to run the form under the debugger? Perhaps the code is disabling the buttons.

mikarin
Posts: 8
Joined: Sat Jan 25, 2020 5:51 am

Re: Gui buttons grayed outs in all tabpanels

Post by mikarin »

All buttons are not clickable. Thats the version of powershell studio. Debug output is " >> Debugging (SP Console.pff) Script...
>> Platform: V2 64Bit (STA)
ERROR: CmdletBinding : Unexpected attribute 'CmdletBinding'.
ERROR: + CategoryInfo : ParserError: (:) [], ParseException
ERROR: + FullyQualifiedErrorId : UnexpectedAttribute
ERROR:
>> Script Ended"

but cant figure out where this error happens in the code.

jvierra
Posts: 14358
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Gui buttons grayed outs in all tabpanels

Post by jvierra »

Sorry but 2012 is far too old a version and I cannot tell you what your issue is.

PowerShell V2 is also no longer supported on any current Windows platform so that could be an issue.

The code you are trying to build from is not V2 code and te V2 setting is telling you that the code version is not recognized.

The best direction I can give you is to open a support incident with Sapien to see what they say. I suspect they will require you to upgrade since your version is well out of its support date.

Post Reply