Jump to content
Sign in to follow this  
electrico

GUICtrlSetColor

Recommended Posts

electrico

Hi colleagues! I am a newbie, and I have a new noob question. Problem is - to make last checkbox option colored (red).

I searched through google, I tryed with my own ideas, - but nothing. Here is a program text attached as au3 file and please, can you describe me HOW TO FIND the f**** controlID of the object, and actually in this attached code - how to make option "Pashka" red. Thank you very much!

AutoIt_v3_Script.au3

Share this post


Link to post
Share on other sites
Valuater

#include <GUIConstantsEx.au3>

GUICreate("AGLONA Party 2009", 800, 520)
GUICtrlCreateGroup("Tusovka", 45, 30, 210, 260)
GUISetBkColor(0x00E0FFFF)
$CheckBox1 = GUICtrlCreateCheckbox("Oleg", 70, 45, 100, 20)
$CheckBox2 = GUICtrlCreateCheckbox("Romanich", 70, 75, 100, 20)
$CheckBox3 = GUICtrlCreateCheckbox("Zenjka", 70, 105, 100, 20)
$CheckBox4 = GUICtrlCreateCheckbox("Shurik", 70, 135, 100, 20)
$CheckBox5 = GUICtrlCreateCheckbox("Petro", 70, 165, 100, 20)
$CheckBox6 = GUICtrlCreateCheckbox("", 70, 195, 17, 17)
GUICtrlCreateLabel("Pashka", 87, 197, 100, 20)
GUICtrlSetColor(-1, 0xff0000)
GUICtrlCreateGroup("Rasschet produktov", 300, 30, 480, 260)
GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
electrico

THANK YOU MAN!!!!! ^_^

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.