Jump to content

Change Text Color of a Group Title


Recommended Posts

Hi,

I created a group with this command:

GuiCtrlCreateGroup("Program Management", 3, 40, 244, 229)

I want to change the color of the text from the default blue. I have been able to change the font and the background color, but not the text color. Any advice? Thanks - Jeff

Link to comment
Share on other sites

Doesn't work under XP-style it seems... not sure if there's other ways to do it but this works.

DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)

GUICreate("", 300, 300)
GUICtrlCreateGroup("Program Management", 10, 10, 280, 280)
GUICtrlSetColor(-1, 0xFF0000)
GUISetState()

Do
Until GUIGetMsg() = -3
That worked great, thanks so much for your help!
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...