Group , welche auf einer GUI mit schwarzem Hintergrund ist, verleiht jedem Label oder anderer Schrift (in diesem Fall Radio Buttons) schwarz.

  • Ich versuche Radio Buttons mit Erklärung hinter jedem der beiden Buttons zu machen. Die GUI hat nen schwarzen Hintergrund und die Schrift soll giftgrün sein. Ich habe mit Koda die Form erstellt, wo man das Problem bereits sah und als ich den Code im Editor ausgeführt hab, war das Caption der Group Box und die Beschreibungen für die Radio Boxes weg bzw. schwarz.

    Hier einmal der Code:

    [autoit]

    #include <GUIConstants.au3>

    [/autoit][autoit][/autoit][autoit]

    Form=$Form2 = GUICreate("Form", 405, 294, 287, 167)

    [/autoit][autoit][/autoit][autoit]

    GUISetBkColor(0x000000)$Group1 = GUICtrlCreateGroup("Gruppe", 40, 40, 241, 193)

    [/autoit][autoit][/autoit][autoit]

    GUICtrlSetColor(-1, 0x00FF00)

    [/autoit][autoit][/autoit][autoit]

    $Radio1 = GUICtrlCreateRadio("Radio1", 64, 88, 113, 17)

    [/autoit][autoit][/autoit][autoit]

    GUICtrlSetColor(-1, 0x00FF00)

    [/autoit][autoit][/autoit][autoit]

    $Radio2 = GUICtrlCreateRadio("Radio2", 64, 120, 113, 17)

    [/autoit][autoit][/autoit][autoit]

    GUICtrlSetColor(-1, 0x00FF00)

    [/autoit][autoit][/autoit][autoit]

    GUICtrlCreateGroup("", -99, -99, 1, 1)

    [/autoit][autoit][/autoit][autoit]

    GUICtrlSetColor(-1, 0x00FF00)

    [/autoit][autoit][/autoit][autoit]

    GUISetState(@SW_SHOW)

    [/autoit][autoit][/autoit][autoit]

    While 1 $nMsg = GUIGetMsg()

    [/autoit][autoit][/autoit][autoit]

    Switch $nMsg

    [/autoit][autoit][/autoit][autoit]

    Case $GUI_EVENT_CLOSE Exit

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    EndSwitch

    [/autoit][autoit][/autoit][autoit]

    WEnd

    [/autoit]


    Wäre echt nett, wenn mich jemand darüber aufklärt ^^

  • Probiere es mal damit:

    Spoiler anzeigen
    [autoit]


    #include <GuiConstantsEx.au3>

    [/autoit] [autoit][/autoit] [autoit]

    $Form2 = GUICreate("Form", 405, 294, 287, 167)
    GUISetBkColor(0x000000)
    $Group1 = GUICtrlCreateGroup("Gruppe", 40, 40, 241, 193)
    GUICtrlSetColor(-1, 0x00FF00)
    $Radio1 = GUICtrlCreateRadio("Radio1", 64, 88, 113, 17)
    GUICtrlSetColor(-1, 0x00FF00)
    $Radio2 = GUICtrlCreateRadio("Radio2", 64, 120, 113, 17)
    GUICtrlSetColor(-1, 0x00FF00)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($Group1), "wstr", 0, "wstr", 0)
    DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($Radio1), "wstr", 0, "wstr", 0)
    DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($Radio2), "wstr", 0, "wstr", 0)
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg

    [/autoit] [autoit][/autoit] [autoit]

    Case $GUI_EVENT_CLOSE
    Exit
    EndSwitch
    WEnd

    [/autoit]

    Gruß,
    UEZ

    Auch am Arsch geht ein Weg vorbei...

    ¯\_(ツ)_/¯