Page 1 of 1

How to modify job start button imagelistAnimation

Posted: Fri Mar 13, 2020 11:59 am
by PGomersall
Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.173
OS: Windows 10 Education (64 Bit)
Build: v10.0.18363.0

I am using your job start button to create a responsive form. However, I was wondering if you could give me some advice on how to edit the imagelistAnimation to give it a bit of color - so that the little spinning wheel is the same color as say the default progress bar (i.e. green)?
Thanks,
Pete

Re: How to modify job start button imagelistAnimation

Posted: Fri Mar 13, 2020 2:49 pm
by brittneyr
The imagelistAnimation is a just a list of images meaning you can modify those to whatever you would like, but when $buttonStartJob is clicked, the button is disabled. This grays out the button which will affect any changes you make to the images in the imageListAnimation as it will be grayed out as well.

Re: How to modify job start button imagelistAnimation

Posted: Fri Mar 13, 2020 3:02 pm
by PGomersall
So even if you edited the images the disabled button would would effectively grey them out.
Could the imageListAnimation be used with some other control (rather than a button) that would not do this? If it could, how would one go about copying the imageListAnimation and editing the images wherever they exist?

Re: How to modify job start button imagelistAnimation

Posted: Tue Mar 17, 2020 8:35 am
by brittneyr
The imageListAnimation object is apart of your GUI, so you are able to manipulate it however you wish, but the default images themselves are apart of the control and therefore cannot be modified. You would need to find or create new images if you wish to change them.