Sign in to follow this  
Followers 0
ame1011

GUICtrlSetColor not working on radio text

2 posts in this topic

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]

Share this post


Link to post
Share on other sites



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?

<{POST_SNAPBACK}>

it is working with the beta

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0