Jump to content

GUICtrlSetColor not working on radio text


Recommended Posts

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]
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...