Hallo zusammen,
das Problem, das ich habe ist, dass das Combo-Element funktioniert, wenn der komplette Rest auskommentiert ist:
Spoiler anzeigen
Code
#include <GUIConstants.au3>
$NewTask_GUI = GUICreate ("Create a new task", 300, 400, -1, -1, $WS_SYSMENU, -1)
;$xTitleLabel = GUICtrlCreateLabel ("Titel", 10, 10, 300, 400)
;$xTitle = GUICtrlCreateInput ("", 60, 5, 200, 20)
;$xTypeLabel = GUICtrlCreateLabel ("Typ", 10, 40, 300, 400)
$xType = GUICtrlCreateCombo("Select Type", 60, 35, 185, 20, $CBS_DROPDOWNLIST)
GUICtrlSetData($xType, "Text-Box|Ideen-Findung|Checkliste")
GUISetState (@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Alles anzeigen
Wenn allerdings der Rest nicht auskommentiert ist, lässt sich bei mir das Combo-Element nicht öffnen:
Spoiler anzeigen
Code
#include <GUIConstants.au3>
$NewTask_GUI = GUICreate ("Create a new task", 300, 400, -1, -1, $WS_SYSMENU, -1)
$xTitleLabel = GUICtrlCreateLabel ("Titel", 10, 10, 300, 400)
$xTitle = GUICtrlCreateInput ("", 60, 5, 200, 20)
$xTypeLabel = GUICtrlCreateLabel ("Typ", 10, 40, 300, 400)
$xType = GUICtrlCreateCombo("Select Type", 60, 35, 185, 20, $CBS_DROPDOWNLIST)
GUICtrlSetData($xType, "Text-Box|Ideen-Findung|Checkliste")
GUISetState (@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Alles anzeigen
Ich kann überhaupt keinen Fehler finden, weil ich nichts anderes mache, als die Semikola entfernen, und der Rest komplett gut funktioniert. Es wäre nett, wenn ihr das ganze mal kurz kopieren und ausprobieren könntet und sagen könntet, ob ihr den Bug bei euch auch habt. Dankeschön schon mal.
LG