Jump to content
Sign in to follow this  
JeffJones

Change Text Color of a Group Title

Recommended Posts

JeffJones

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

Share this post


Link to post
Share on other sites
JeffJones

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!

Share this post


Link to post
Share on other sites
Emiel Wieldraaijer

HI..

and how to make the background transparent .. so you wont see a gray block when you have a picture in the background ?

Thnx

Emiel


Best regards,Emiel Wieldraaijer

Share this post


Link to post
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
Sign in to follow this  

×