Jump to content
Sign in to follow this  
Renderer

Autoit Create Gradient to a Control

Recommended Posts

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

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...