sensalim Posted February 27, 2008 Share Posted February 27, 2008 $Group1 = GUICtrlCreateGroup("Group Name", 8, 316, 314, 117) GUICtrlSetBkColor(-1, 0x00ff00) ;bg color changes to green GUICtrlSetColor(-1, 0x000000) ;text color does not change! why? What's the proper way of doing color? Can it color its background ('block')? Link to comment Share on other sites More sharing options...
BrettF Posted February 27, 2008 Share Posted February 27, 2008 $Group1 = GUICtrlCreateGroup("Group Name", 8, 316, 314, 117) GUICtrlSetBkColor(-1, 0x00ff00) ;bg color changes to green GUICtrlSetColor(-1, 0x000000) ;text color does not change! why? What's the proper way of doing color? Can it color its background ('block')?Search for it. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
rasim Posted February 27, 2008 Share Posted February 27, 2008 Hi! This is a trick, but can help you: #include <GuiConstants.au3> $hGui = GuiCreate("Colored group", 300, 200) GUICtrlCreateLabel("", 24, 20, 250, 150) GUICtrlSetBkColor(-1, 0xDDDDDD) GUICtrlSetState(-1, $GUI_DISABLE) $hGroup = GUICtrlCreateGroup("My group", 24, 14, 250, 157, $BS_CENTER) GUICtrlSetBkColor(-1, 0xDDDDDD) GUICtrlCreateRadio("Radio1", 40, 40, 54, 18) GUICtrlSetBkColor(-1, 0xDDDDDD) GUICtrlCreateRadio("Radio2", 40, 80, 54, 18) GUICtrlSetBkColor(-1, 0xDDDDDD) GUICtrlCreateRadio("Radio3", 40, 120, 54, 18) GUICtrlSetBkColor(-1, 0xDDDDDD) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
sensalim Posted February 27, 2008 Author Share Posted February 27, 2008 Ah a trick. It works, thanks. (only if I use windows classic style) -- why doesn't it work on xp or tabletpc style? Link to comment Share on other sites More sharing options...
rasim Posted February 28, 2008 Share Posted February 28, 2008 sensalim(only if I use windows classic style) -- why doesn't it work on xp or tabletpc style?What? Work for me, i used XP style... Link to comment Share on other sites More sharing options...
BrettF Posted February 28, 2008 Share Posted February 28, 2008 Again, I direct you to the search function. This question has been asked at least 100 times in the past year... Search for "color group" and you'll find your answer. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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