Rad Posted January 31, 2007 Share 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? Link to comment Share on other sites More sharing options...
newb_powa' Posted January 31, 2007 Share 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. Link to comment Share on other sites More sharing options...
Rad Posted January 31, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
NELyon Posted January 31, 2007 Share 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... Link to comment Share on other sites More sharing options...
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