Sign in to follow this  
Followers 0
KillaX

Changing color of GUI pic?

4 posts in this topic

Yes, I'm a new member loving Autoit finding it VERY easy to use. But To help reduce my huge code down, is it possible to make a $Slot1 = GUICtrlCreatePic("white.jpg") (white being a photoshoped square) and be able to somehow change its color without having to remake it over and over? Right now I can just keep re-creating a gui over it, but then its not erasing the older layers under it! How can i somehow change the color of this? I mean i can make multiple jpgs of each color i need, but can i change it without re-creating the gui? like constantly change GUICtrlCreatePic($Color)? Please help

Share this post


Link to post
Share on other sites



Yes, I'm a new member loving Autoit finding it VERY easy to use. But To help reduce my huge code down, is it possible to make a $Slot1 = GUICtrlCreatePic("white.jpg") (white being a photoshoped square) and be able to somehow change its color without having to remake it over and over? Right now I can just keep re-creating a gui over it, but then its not erasing the older layers under it! How can i somehow change the color of this? I mean i can make multiple jpgs of each color i need, but can i change it without re-creating the gui? like constantly change GUICtrlCreatePic($Color)? Please help

yes, use Guictrldelete.

Share this post


Link to post
Share on other sites

yes, use Guictrldelete.

I'll give it a try, gona have to add names to my gui so it can be done. Thank you

Share this post


Link to post
Share on other sites

Use this

GUICtrlSetImage()

... see help

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0