Renderer Posted October 10, 2017 Share Posted October 10, 2017 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. Link to comment Share on other sites More sharing options...
SlackerAl Posted October 10, 2017 Share Posted October 10, 2017 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. Link to comment Share on other sites More sharing options...
UEZ Posted October 10, 2017 Share Posted October 10, 2017 Check this out: SlackerAl 1 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
SlackerAl Posted October 10, 2017 Share Posted October 10, 2017 @UEZ Nice one, those are some pretty fancy buttons! Problem solving step 1: Write a simple, self-contained, running, replicator of your problem. Link to comment Share on other sites More sharing options...
LarsJ Posted October 10, 2017 Share Posted October 10, 2017 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. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now