ArxBzFhblxphS Posted January 25, 2010 Share Posted January 25, 2010 (edited) Edited January 30, 2010 by Thanubis Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 25, 2010 Share Posted January 25, 2010 I expected it only sets the color for text written after it is called. This one work-around I guess. Opt('MustDeclareVars', 1) Local $hGUI = GUICreate("Test") GUICtrlSetDefColor(0xFF0000, $hGUI) GUICtrlCreateLabel("Label", 10, 10, 100, 20) Local $button = GUICtrlCreateButton("Button", 10, 50, 100, 50) GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit Case $button ConsoleWrite(GUICtrlSetDefColor(0x0000FF, $hGUI) & @CRLF) GUICtrlCreateLabel("Label", 10, 10, 100, 20) EndSwitch WEnd - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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