trescon Posted May 2, 2012 Share Posted May 2, 2012 Hi, I have not found anywhere below the color table can be used for preaction buttons, see for example: GUICtrlSetBkColor (-1, 0x00FF00); Green. If anyone knows tell me where I can find. thanks Alberto Thank You Alberto --------------------------------------------------- I am translate with Google. Link to comment Share on other sites More sharing options...
UEZ Posted May 2, 2012 Share Posted May 2, 2012 GUICtrlSetBkColor (-1, 0x00FF00); Green uses the RGB format (0xRRGGBB) Examples: 0xFF0000 is red 0x00FF00 is green 0x0000FF is blue 0xFFFFFF is white 0x000000 is black 0x808080 is grey You can mix color channels to get e.g. yellow, orange, purple, etc. Br, UEZ 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...
trescon Posted May 2, 2012 Author Share Posted May 2, 2012 Thanks for the swift response, and can you tell me where I find a table that gives me the correspondence between the code and the RGB color matching. thanks Alberto Thank You Alberto --------------------------------------------------- I am translate with Google. Link to comment Share on other sites More sharing options...
UEZ Posted May 2, 2012 Share Posted May 2, 2012 (edited) Try the _ChooseColor() function: #include <misc.au3> $iColor = _ChooseColor(2) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iColor = ' & Hex($iColor, 6) & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console Br, UEZ Edited May 2, 2012 by UEZ 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...
trescon Posted May 2, 2012 Author Share Posted May 2, 2012 Thanks, your help I 'was really helpful. at the next Alberto Thank You Alberto --------------------------------------------------- I am translate with Google. 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