Jump to content

Change text colour on GUICtrlCreateGroup


beast
 Share

Go to solution Solved by FireFox,

Recommended Posts

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 by beast
Link to comment
Share on other sites

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 by beast
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...