ComboImageList wird nicht richtig angezeigt

  • Hallo,

    ich habe ein Problem mit meinen ComboImageListen, wenn man die ComboBoxen öffnet, dann ist die Liste vielleicht 2mm hoch, was bedeutet, ich kann keinen inhalt sehen obwohl er vorhanden ist.

    Hier der Code, ich hoffe ihr könnt helfen...

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <ComboConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GuiComboBoxEx.au3>
    #include <GuiImageList.au3>
    #include <GuiConstantsEx.au3>

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

    Local $Form1, $hImage1, $hImage2, $hCombo1, $hCombo2

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

    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Einstellungen", 362, 401, 192, 124)
    $Label1 = GUICtrlCreateLabel("Wählen Sie hier die Hintergrundfarbe und die Textfarbe aus!", 8, 8, 346, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $Label2 = GUICtrlCreateLabel("Hintergrundfarbe:", 8, 56, 103, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $hCombo1 = _GUICtrlComboBoxEx_Create($Form1, "", 8, 88, 337, 25)

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

    $hImage1 = _GUIImageList_Create(16, 16, 5, 5)
    _GUIImageList_Add($hImage1, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo1, 0xFF0000, 16, 16))
    _GUIImageList_Add($hImage1, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo1, 0x00FF00, 16, 16))
    _GUIImageList_Add($hImage1, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo1, 0x0000FF, 16, 16))
    _GUIImageList_Add($hImage1, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo1, 0x000000, 16, 16))
    _GUICtrlComboBoxEx_SetImageList($hCombo1, $hImage1)

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

    _GUICtrlComboBoxEx_AddString($hCombo1, "Rot", 0, 0)
    _GUICtrlComboBoxEx_AddString($hCombo1, "Grün", 1, 1)
    _GUICtrlComboBoxEx_AddString($hCombo1, "Blau", 2, 2)
    _GUICtrlComboBoxEx_AddString($hCombo1, "Schwarz", 3, 3)

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

    $Label3 = GUICtrlCreateLabel("TextFarbe:", 8, 136, 65, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $hCombo2 = _GUICtrlComboBoxEx_Create($Form1, "", 8, 168, 337, 25)

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

    $hImage2 = _GUIImageList_Create(16, 16, 5, 5)
    _GUIImageList_Add($hImage2, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo2, 0xFF0000, 16, 16))
    _GUIImageList_Add($hImage2, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo2, 0x00FF00, 16, 16))
    _GUIImageList_Add($hImage2, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo2, 0x0000FF, 16, 16))
    _GUIImageList_Add($hImage2, _GUICtrlComboBoxEx_CreateSolidBitMap ($hCombo2, 0x000000, 16, 16))
    _GUICtrlComboBoxEx_SetImageList($hCombo2, $hImage2)

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

    _GUICtrlComboBoxEx_AddString($hCombo2, "Rot", 0, 0)
    _GUICtrlComboBoxEx_AddString($hCombo2, "Grün", 1, 1)
    _GUICtrlComboBoxEx_AddString($hCombo2, "Blau", 2, 2)
    _GUICtrlComboBoxEx_AddString($hCombo2, "Schwarz", 3, 3)

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

    $Button1 = GUICtrlCreateButton("Abbrechen", 56, 264, 75, 25)
    $Button2 = GUICtrlCreateButton("Übernehmen", 200, 264, 75, 25)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $Button1
    Case $Button2
    EndSwitch
    WEnd

    [/autoit]

    MfG, Facemix

    meine Spezialität: Windowstools für eine leichtere Arbeit am PC

    Nicht veröffentlicht


    nicht veröffentlichte Programme von mir

    - FTP Filereader
    - Youtube Kanal Player
    -GDI+ Countdown (bis zu einem Wunderbaren ereignis :) )

    MyPastebin

    Einmal editiert, zuletzt von Facemix (27. November 2012 um 18:29)

  • ok das ist jetzt wirklichpeinlich :D aber danke :)

    MfG, Facemix

    meine Spezialität: Windowstools für eine leichtere Arbeit am PC

    Nicht veröffentlicht


    nicht veröffentlichte Programme von mir

    - FTP Filereader
    - Youtube Kanal Player
    -GDI+ Countdown (bis zu einem Wunderbaren ereignis :) )

    MyPastebin