Jump to content

Color Botton in the GUI


Recommended Posts

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

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

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...