Hi everyone,
I'm trying to make a check box which uses white text insted of the standard black, now as far as i know, that cannot be done directly. So i've made a check box with no text, and then white text next to it, and when i click the text i want it to check the checkbox, just like you'd normaly expect from text next to a check box. My problem is that it's slow, you cannot click it and then unclick it with in the same second.
Can anyone help me out here? any help would be appreciated?
#include
GUICreate("GUI",300,200)
GUISetBkColor(0x333333)
$Checkbox = GUICtrlCreateCheckbox("", 8, 49, 15, 15)
$Checktext = GUICtrlCreateLabel("Click the text", 27, 48, 130, 20, 0)
GUICtrlSetFont($Checktext, 12, 1000, 0, "Verdana")
GUICtrlSetColor($Checktext, 0xFFFFFF)
GuiSetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checktext
_CheckUncheck($Checkbox)
EndSwitch
WEnd
Func _CheckUncheck($Thingtocheckuncheck)
If GUICtrlRead($Thingtocheckuncheck) = $GUI_CHECKED Then
GUICtrlSetState($Thingtocheckuncheck, $GUI_UNCHECKED)
ElseIf GUICtrlRead($Thingtocheckuncheck) = $GUI_UNCHECKED then
GUICtrlSetState($Thingtocheckuncheck, $GUI_CHECKED)
endif
EndFunc