Swimming_Bird Posted July 18, 2006 Share Posted July 18, 2006 I cant figure out how to change the color of a checkbox control's text. Is this even possible? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 18, 2006 Share Posted July 18, 2006 (edited) GUICtrlSetColor Edited July 18, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 18, 2006 Author Share Posted July 18, 2006 (edited) i've tried that it didnt work. i was only able to set the background color. this leave the color as black #include <GUIConstants.au3> GUICreate("My GUI Checkbox") ; will create a dialog box that when displayed is centered $checkCN = GUICtrlCreateCheckbox ("CHECKBOX 1", 10, 10, 120, 20) GUICtrlSetColor ( $checkCN , 0x0000FF ) GUISetState () ; will display an dialog box with 1 checkbox ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Edited July 18, 2006 by Swimming_BIrd Link to comment Share on other sites More sharing options...
GaryFrost Posted July 19, 2006 Share Posted July 19, 2006 i've tried that it didnt work. i was only able to set the background color. this leave the color as black #include <GUIConstants.au3> GUICreate("My GUI Checkbox") ; will create a dialog box that when displayed is centered $checkCN = GUICtrlCreateCheckbox ("CHECKBOX 1", 10, 10, 120, 20) GUICtrlSetColor ( $checkCN , 0x0000FF ) GUISetState () ; will display an dialog box with 1 checkbox ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend It worked for me, it set the text color as blue SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Swimming_Bird Posted July 19, 2006 Author Share Posted July 19, 2006 (edited) hrm very strange. every time i've tried that command the text remains black... I've tried this exact code o on 2 different computers both running the latest beta and the latest man release. and running with neither the beta or the full release does the color change. Edited July 19, 2006 by Swimming_BIrd Link to comment Share on other sites More sharing options...
MHz Posted July 19, 2006 Share Posted July 19, 2006 Swimming_BIrd, If it makes you feel any better, then I get only black also on WinXP Pro system. 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