Jump to content

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


Sycamore
 Share

Recommended Posts

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

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

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...