Renderer

Autoit Create Gradient to a Control

5 posts in this topic

Hi guys. Is it possible to create a gradient for a control? For instance is it possible to create a gradient for an Input, or edit, or even a button?

Thanks in advance.

Share this post


Link to post
Share on other sites



If you mean shade the control according to a value, you could use GUICtrlSetColor and update it each time the value changes. If you want a colour gradient across the control, then no.


Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Share this post


Link to post
Share on other sites

Check this out:

 

1 person likes this

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

@UEZ Nice one, those are some pretty fancy buttons!


Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Share this post


Link to post
Share on other sites

Renderer, If a control can be custom or owner drawn (check Microsoft documentation) you can probably also create a color gradient.

See the example for GUIRegisterMsg in the help file for an owner drawn button. I'm pretty sure that in this example you can also make a color gradient.

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