ame1011 Posted June 21, 2005 Posted June 21, 2005 I am using the following code to change the text color of a radio button: #include <GUIConstants.au3> GUICreate("My GUI color text", 200 , 50); will create a dialog box that when displayed is centered $radio1 = GUICtrlCreateRadio ("general", 10, 15) GUICtrlSetColor(-1,0xff0000) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd This does not change the color of the text of the radio button to red like it should... it just remains black. However when i replace GUICtrlSetColor(-1,0xff0000) with GUICtrlSetBkColor(-1,0xff0000) the background color of the radio button DOES get changed. Any ideas? [font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]
jpm Posted June 21, 2005 Posted June 21, 2005 I am using the following code to change the text color of a radio button:#include <GUIConstants.au3> GUICreate("My GUI color text", 200 , 50); will create a dialog box that when displayed is centered $radio1 = GUICtrlCreateRadio ("general", 10, 15) GUICtrlSetColor(-1,0xff0000) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEndThis does not change the color of the text of the radio button to red like it should... it just remains black. However when i replace GUICtrlSetColor(-1,0xff0000) with GUICtrlSetBkColor(-1,0xff0000) the background color of the radio button DOES get changed. Any ideas?<{POST_SNAPBACK}>it is working with the beta
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