Schriftfarbe einer Gruppe

  • hoi zäme

    Ich möchte den Namen einer Gruppe (also den Titel) in einer anderen Schriftfarbe darstellen.
    Das klappt bei mir mit SetColor leider nicht. Ich verstehe nicht, was ich falsch mache.

    herzlichen Dank
    tollpan

    Spoiler anzeigen
    [autoit]


    ; 0. Deklarationen
    AutoItSetOption("MustDeclareVars", 1)
    #include <GUIConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>

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

    Global $iFensterBreite = 600, $iFensterHoehe = 480
    Global $gui, $sGuiName = "HTML erzeugen"
    Global $gGuiTab, $gGuiTabItem[2]

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

    Dim $msg
    Dim $gGruppe1, $gGruppe2, $gGruppe3
    Dim $gCheckDatWeb, $gCheckHTMLbild, $gCheckHTMLstart
    Dim $sDatWebText = "Daten Website", $sHTMLbildText = "HTML Bildseite", $sHTMLstartText = "HTML Startseite"

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

    ; 1. Erzeuge GUI
    Opt("GUIOnEventMode", 1)
    $gui = GUICreate($sGuiName, $iFensterBreite, $iFensterHoehe, 10, 10)
    GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")

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

    ; Tab Produktion
    $gGuiTab = GUICtrlCreateTab(10, 10, $iFensterBreite - 20, $iFensterHoehe - 20, BitOR($GUI_SS_DEFAULT_TAB, $TCS_MULTILINE))
    $gGuiTabItem[1] = GUICtrlCreateTabItem("Produktion")

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

    ; Gruppe mit Skriptnamen für Websites
    $gGruppe1 = GUICtrlCreateGroup("Website-Skripte", 20, 40, 130, 100)
    GUICtrlSetColor($gGruppe1, 0x4169e1)
    $gCheckDatWeb = GUICtrlCreateCheckbox($sDatWebText, 25, 60, 120, 20)
    $gCheckHTMLbild = GUICtrlCreateCheckbox($sHTMLbildText, 25, 85, 120, 20)
    $gCheckHTMLstart = GUICtrlCreateCheckbox($sHTMLstartText, 25, 110, 120, 20)
    GUICtrlCreateGroup("", -99, -99, 1, 1) ; Gruppe schliessen

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

    GUICtrlCreateTabItem("")
    GUISetState(@SW_SHOW)

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

    ; 2. GUI on Event-Mode
    While 1
    Sleep(1000) ; Häng rum
    WEnd

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

    Func CLOSEClicked()
    Exit
    EndFunc ; ==> CLOSEClicked

    [/autoit]

    Einmal editiert, zuletzt von tollpan (30. November 2012 um 22:13)

  • Du musst erst das Theme entfernen:

    Spoiler anzeigen
    [autoit]

    ; 0. Deklarationen
    AutoItSetOption("MustDeclareVars", 1)
    #include <GUIConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <TabConstants.au3>
    #include <WindowsConstants.au3>

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

    Global $iFensterBreite = 600, $iFensterHoehe = 480
    Global $gui, $sGuiName = "HTML erzeugen"
    Global $gGuiTab, $gGuiTabItem[2]

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

    Dim $msg
    Dim $gGruppe1, $gGruppe2, $gGruppe3
    Dim $gCheckDatWeb, $gCheckHTMLbild, $gCheckHTMLstart
    Dim $sDatWebText = "Daten Website", $sHTMLbildText = "HTML Bildseite", $sHTMLstartText = "HTML Startseite"

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

    ; 1. Erzeuge GUI
    Opt("GUIOnEventMode", 1)
    $gui = GUICreate($sGuiName, $iFensterBreite, $iFensterHoehe, 10, 10)
    GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")

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

    ; Tab Produktion
    $gGuiTab = GUICtrlCreateTab(10, 10, $iFensterBreite - 20, $iFensterHoehe - 20, BitOR($GUI_SS_DEFAULT_TAB, $TCS_MULTILINE))
    $gGuiTabItem[1] = GUICtrlCreateTabItem("Produktion")

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

    ; Gruppe mit Skriptnamen für Websites
    $gGruppe1 = GUICtrlCreateGroup("Website-Skripte", 20, 40, 130, 100)
    DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($gGruppe1), "wstr", 0, "wstr", 0)
    GUICtrlSetColor($gGruppe1, 0x4169e1)
    $gCheckDatWeb = GUICtrlCreateCheckbox($sDatWebText, 25, 60, 120, 20)
    $gCheckHTMLbild = GUICtrlCreateCheckbox($sHTMLbildText, 25, 85, 120, 20)
    $gCheckHTMLstart = GUICtrlCreateCheckbox($sHTMLstartText, 25, 110, 120, 20)
    GUICtrlCreateGroup("", -99, -99, 1, 1) ; Gruppe schliessen

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

    GUICtrlCreateTabItem("")
    GUISetState(@SW_SHOW)

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

    ; 2. GUI on Event-Mode
    While 1
    Sleep(1000) ; Häng rum
    WEnd

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

    Func CLOSEClicked()
    Exit
    EndFunc ; ==> CLOSEClicked

    [/autoit]

    Andy hat mir ein Schnitzel gebacken aber da war ein Raupi drauf und bevor Oscar das Bugfixen konnte kam Alina und gab mir ein AspirinJunkie.