Sign in to follow this  
Followers 0
Sycamore

Can set a button's background color, but cannot retrieve the button's background color

3 posts in this topic

GUICtrlCreateButton("", $xstart, $ystart, 10, 10)

If FileExists(blahblahblah.txt) Then

GUICtrlSetBkColor(-1,0xff0000) ; this part sets the color just fine

Else

GUICtrlSetBkColor(-1,0x00ff00)

EndIf

GUICtrlSetOnEvent(-1,"ColorQuery")

func colorquery()

this is where I haven't got a clue - i've searched and searched, and it seems like nothing is available to tell me the color

of a control.

I set the color with one simple command, so I was hoping I could retrieve the color with one simple command.

:P

Share this post


Link to post
Share on other sites



Set the colour to a variable and access it later.

Cheers,

Brett

:idea::(:P Thanks! That kinda points me in the direction I thought I'd have to go...

outback southeast of Alice Springs... :) I'm having great fun - I really love AutoIT - and if my brain starts to

melt it's my own fault...I've been at this 12-18 hours a day for at least a week...

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