Jump to content

Checkbox text color


Delta
 Share

Recommended Posts

  • Moderators

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.

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...