beast Posted February 7, 2014 Posted February 7, 2014 (edited) Hi, I try to change text colour on GUICtrlCreateGroup, but I cant get this to work. I use $Group1 = GUICtrlCreateGroup("Program som är öppna är följande", 32, 112, 393,89) To create And for the button $Button2 = GUICtrlCreateButton("Fortsätt", 376, 216, 97, 25,$WS_GROUP) GUICtrlSetOnEvent($Button2, "_Exit") ;Function to close the entire program Func _Exit() if ProcessExists($CMDLINE[2]) then GUICtrlSetColor($Group1,0xFF0000) Else Exit EndIfEndFunc ;==>_Exit Button work and my program while not close if ProcessExists, But it don't change colour to red on Group. Is there some refresh I need to do, I cant found somthing to refresh forms or GUICtrlCreateGroup. So please help me. Edited February 7, 2014 by beast
Solution FireFox Posted February 7, 2014 Solution Posted February 7, 2014 (edited) Hi, Please use autoit code tags to post your code. You need to add this after the group control : DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($Group1), "wstr", 0, "wstr", 0) _ Br, FireFox. Edited February 7, 2014 by FireFox
beast Posted February 7, 2014 Author Posted February 7, 2014 (edited) Sorry I while use Autoit Code Tags next time. And your help work, Thanks. $Group1 = GUICtrlCreateGroup("Program som är öppna är följande", 32, 112, 393, 89) GUICtrlCreateGroup("", -99, -99, 1, 1) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($Group1), "wstr", 0, "wstr", 0) Edited February 7, 2014 by beast
FireFox Posted February 7, 2014 Posted February 7, 2014 Btw, This line is useless : GUICtrlCreateGroup("", -99, -99, 1, 1) The DllCall targets the group $Group1 Br, FireFox.
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