Sign in to follow this  
Followers 0
Delta

Checkbox text color

3 posts in this topic

Is it possible to set the color of the checkbox test?


[size="1"]Please stop confusing "how to" with "how do"[/size]

Share this post


Link to post
Share on other sites



Is it possible to set the color of the checkbox test?

Is the test graded? ... lol just kidding.

Use a label for the text.

Func _GUICtrlCreateCheckbox($sText, $nLeft, $nTop, $nWidth, $nHeight, $nColor)
    Local $aCkBoxEx[3]
    $aCkBoxEx[1] = GUICtrlCreateCheckbox('', $nLeft, $nTop, 13, 13)
    $aCkBoxEx[2] = GUICtrlCreateLabel($sText, $nLeft + 20, $nTop, $nWidth, $nHeight)
    GUICtrlSetBkColor($aCkBoxEx[2], $nColor)
    Return $aCkBoxEx
EndFunc

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

thank you and yes the test is graded


[size="1"]Please stop confusing "how to" with "how do"[/size]

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