samlehnen200 wrote:haste mal paar values oder string für mich
well, i dnot understand anything, but I think you mean backcolor and textcolor of your checboxk.
checkboxBackcolor:
- Code:
Func GUICHECKBOXSETCOLOR(ByRef $CTRLID, $ICOLOR, $IBKCOLOR = "0xF1EDED")
$CTRLHWND = $CTRLID
If Not IsHWnd($CTRLHWND) Then $CTRLHWND = GUICtrlGetHandle($CTRLID)
$APARENT = DllCall("user32.dll", "hwnd", "GetParent", "hwnd", $CTRLHWND)
$ACPOS = ControlGetPos($APARENT[0], "", $CTRLID)
$SOLDT = GUICtrlRead($CTRLID, 1)
GUICtrlDelete($CTRLID)
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 0)
$CTRLID = GUICtrlCreateCheckbox($SOLDT, $ACPOS[0], $ACPOS[1], $ACPOS[2], $ACPOS[3])
GUICtrlSetColor(-1, $ICOLOR)
GUICtrlSetBkColor(-1, $IBKCOLOR)
DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", 7)
EndFunc
how use Func GUICHECKBOXSETCOLOR->
- Code:
$Checkbox1 = GUICtrlCreateCheckbox("Speed x15", 168, 112, 105, 17)
GUICHECKBOXSETCOLOR($CHECKBOX1, 0, -2)
checkbox TextColor->
- Code:
Func Guichecboxcolor($ID,$ICOLOR)
DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($ID), "wstr", 0, "wstr", 0)
GUICtrlSetColor($ID, $ICOLOR)
EndFunc
how use TextColor->
- Code:
$Checkbox1 = GUICtrlCreateCheckbox("Speed x15", 168, 112, 105, 17)
Guichecboxcolor($Checkbox1 , 0xFFFF00)
is this your question or not? xD!