Jump to content
Sign in to follow this  
p)(d

get bkground color from label?

Recommended Posts

I would work around like this:

Replace all instances of $Label[$X][$Y] by $Label[$X][$Y][0]

Replace all instances of

GUICtrlSetBkColor($Label[$X][$Y],$newColor)
by

GUICtrlSetBkColor($Label[$X][$Y][0],$newColor)
$Label[$X][$Y][1] = $newColor

Then you just read $Label[$x][$y][1] for the color of that label.

Alternately, you can create a function that does this:

Func GUICtrlGetBkColor($x,$y)
        Return $label[$x][$y][1]
EndFunc
Edited by Manadar

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  

×
×
  • Create New...