Rad Posted January 31, 2007 Posted January 31, 2007 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?
newb_powa' Posted January 31, 2007 Posted January 31, 2007 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.
Rad Posted January 31, 2007 Author Posted January 31, 2007 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
NELyon Posted January 31, 2007 Posted January 31, 2007 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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now