Combo mit Hiltergrundfarbe?

  • Hallo Leute,

    was muss ich ändern, damit der $Combo1 die Hintergrundfarbe 0xFFFFE1 bekommt?

    [autoit]

    #Region ### START Koda GUI section ### Form=c:\tools\installmanager\form2.kxf
    $Form1_1 = GUICreate("Installmanager", 638, 246, 725, 228)
    $Label1 = GUICtrlCreateLabel("Version:", 168, 20, 62, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Combo1 = GUICtrlCreateCombo("Combo1", 256, 16, 369, 25)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Button1 = GUICtrlCreateButton("START", 168, 192, 457, 41, $WS_GROUP)
    GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
    $Input1 = GUICtrlCreateInput("", 256, 56, 369, 24)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xF1EFE2)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Input2 = GUICtrlCreateInput("", 256, 88, 369, 24)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xF1EFE2)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Input3 = GUICtrlCreateInput("", 256, 120, 369, 24)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xF1EFE2)
    GUICtrlSetState(-1, $GUI_DISABLE)
    $Input4 = GUICtrlCreateInput("89" & StringRight(@YEAR,2) & @MON & @MDAY & "01" , 256, 152, 129, 28)
    GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
    GUICtrlSetBkColor(-1, 0xFFFFE1)
    $Label2 = GUICtrlCreateLabel("Versionsnr.:", 168, 156, 88, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Label3 = GUICtrlCreateLabel("Vers. + JJ + MM + TT + Index", 397, 158, 173, 20)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Label4 = GUICtrlCreateLabel("Install-Dir:", 168, 56, 75, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Label5 = GUICtrlCreateLabel("Server 1:", 168, 92, 67, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Label6 = GUICtrlCreateLabel("Server 2:", 168, 124, 67, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
    $Pic1 = GUICtrlCreatePic(@ScriptDir & "\image1.jpg", 16, 58, 129, 169, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Pic2 = GUICtrlCreatePic(@ScriptDir & "\image2.jpg", 16, 16, 129, 33, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Label7 = GUICtrlCreateLabel("Label7", 8, 8, 148, 225, BitOR($SS_CENTER,$SS_RIGHT,$SS_BLACKRECT,$SS_GRAYRECT,$SS_WHITERECT,$SS_BLACKFRAME))
    _IniEinlesen()
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit]

    Vielen Dank!

    Gruß,
    Dino

    Einmal editiert, zuletzt von Dino (5. Februar 2010 um 13:03)

  • Hallo dino,

    verwende doch einfach

    [autoit]

    GUICtrlSetBkColor(-1, 0xFFFFE1

    [/autoit]

    , diesen Befehl kennst du doch schon (siehe Zeile 11 in deinem Skript),

    mfg (Auto)Bert