Sign in to follow this  
Followers 0
trescon

Color Botton in the GUI

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Thanks, your help I 'was really helpful.

at the next

Alberto


Thank You

Alberto

---------------------------------------------------

I am translate with Google.

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