Jump to content

Recommended Posts

Posted

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
Posted

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

Posted

Hi,

It looks like only the background of the title is working, not the font colour; not changing?

Randall

<{POST_SNAPBACK}>

true something related with the windows themes I think :)
Posted

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

Posted

Works fine here too.

XP SP2, Windows Classic Theme.

<{POST_SNAPBACK}>

I think special coloring occur with windows XP theme . that's the reason why classic is OK. same problem as for combo size :)

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...