Sign in to follow this  
Followers 0
Rad

"Theme" for a window?

4 posts in this topic

I like changing the colors of my controls and such, make the background white and the text blue... but i dont like giving every label/input etc the GUICtrlSetColor()

Is there a way, with like OPT("defaultlabelcolor") or something, so you dont twice as many lines?

Share this post


Link to post
Share on other sites



I like changing the colors of my controls and such, make the background white and the text blue... but i dont like giving every label/input etc the GUICtrlSetColor()

Is there a way, with like OPT("defaultlabelcolor") or something, so you dont twice as many lines?

Did you try to put the color in a variable ?? Then you only have to change that var to change every color.

Share this post


Link to post
Share on other sites

Yeah thats what i have right now, but its still alot of extra lines i was just wondering if i was wasting time doing it that way

Share this post


Link to post
Share on other sites

Here's one workaround:

Put your control types in a variable

then do something like this:

Dim $cLabels[10] ;change to amount of controls
Dim $cInputs[10 ;Same Here
oÝ÷ Ù8^)ò¢êð)^)ªê-jëh×6
For $i = 1 to UBound($cLabels)
    GUICtrlSetColor($cLabel[$i], 0xff00ff)
Next

Ect...

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