Wb-FreeKill Posted April 21, 2005 Share Posted April 21, 2005 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 comment Share on other sites More sharing options...
jpm Posted April 21, 2005 Share Posted April 21, 2005 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 itJUst add GUICtrlSetBkColor (-1,0xFF00)you will see that the Group title can be change not the whole area or the group Link to comment Share on other sites More sharing options...
randallc Posted April 22, 2005 Share Posted April 22, 2005 Hi, It looks like only the background of the title is working, not the font colour; not changing? Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
jpm Posted April 22, 2005 Share Posted April 22, 2005 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 Link to comment Share on other sites More sharing options...
therks Posted April 22, 2005 Share Posted April 22, 2005 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 ExitLoopWEnd My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted April 22, 2005 Author Share Posted April 22, 2005 they all got the same color on mine Link to comment Share on other sites More sharing options...
sandyd Posted April 22, 2005 Share Posted April 22, 2005 Works fine here too. XP SP2, Windows Classic Theme. ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
jpm Posted April 22, 2005 Share Posted April 22, 2005 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 Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted April 22, 2005 Author Share Posted April 22, 2005 Yeah just tested with classic theme, now it works.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now