Jump to content

Changeing the text color of a Group?


Recommended Posts

Is it possible to change the color of the title in a Group?

#include <GUIConstants.au3>

GUICreate("Test Group",400,400)
GUISetBkColor (0x1E568F)

GUICtrlCreateGroup("Files",10,50,200,70)
GUICtrlSetColor (-1,0xFFFFFF)

GUISetstate()

While 1
    $msg = GUigetmsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        
WEnd
Link to post
Share on other sites

Is it possible to change the color of the title in a Group?

#include <GUIConstants.au3>

GUICreate("Test Group",400,400)
GUISetBkColor (0x1E568F)

GUICtrlCreateGroup("Files",10,50,200,70)
GUICtrlSetColor (-1,0xFFFFFF)

GUISetstate()

While 1
    $msg = GUigetmsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        
WEnd

<{POST_SNAPBACK}>

you did it

JUst add GUICtrlSetBkColor (-1,0xFF00)

you will see that the Group title can be change not the whole area or the group

Link to post
Share on other sites

Font colour works fine for me:

CODE
#include <GUIConstants.au3>

GUICreate("Group Color Test", 200, 180)

GUICtrlCreateGroup("Group Text", 0, 0, 200, 30)

GUICtrlSetColor(-1, 0x00FF00)

GUICtrlCreateGroup("Group Text", 0, 30, 200, 30)

GUICtrlSetColor(-1, 0xFF0000)

GUICtrlCreateGroup("Group Text", 0, 60, 200, 30)

GUICtrlSetColor(-1, 0x0000FF)

GUICtrlCreateGroup("Group Text", 0, 90, 200, 30)

GUICtrlSetColor(-1, 0x00FFFF)

GUICtrlCreateGroup("Group Text", 0, 120, 200, 30)

GUICtrlSetColor(-1, 0xFFFF00)

GUICtrlCreateGroup("Group Text", 0, 150, 200, 30)

GUICtrlSetColor(-1, 0xFF00FF)

GUISetstate()

While 1

$msg = GUigetmsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop

WEnd

Posted Image

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...