Hallo ihr lieben,
ich habe eine Combobox, die in mehrere Kategorien unterteilt ist.
Die jeweiligen Kategorien selbst sollen aber nicht ausgewählt werden können, nur die Unterpunkte
#include <ComboConstants.au3>
#include <GuiComboBox.au3>
#include <GUIConstantsEx.au3>
$hGui = GUICreate("Neuen Eintrag hinzufügen", Default, Default, -1, -1)
$Combo = GUICtrlCreateCombo("", 1, 1, 150, 100, $CBS_DROPDOWNLIST)
_GUICtrlComboBox_AddString($Combo, "------Kategorie1")
_GUICtrlComboBox_AddString($Combo, "Eintrag 1")
_GUICtrlComboBox_AddString($Combo, "Eintrag 2")
_GUICtrlComboBox_AddString($Combo, "Eintrag 3")
_GUICtrlComboBox_AddString($Combo, "Eintrag 4")
_GUICtrlComboBox_AddString($Combo, "------Kategorie 2")
_GUICtrlComboBox_AddString($Combo, "Eintrag 5")
_GUICtrlComboBox_AddString($Combo, "Eintrag 6")
_GUICtrlComboBox_AddString($Combo, "Eintrag 7")
_GUICtrlComboBox_AddString($Combo, "Eintrag 8")
GUISetState()
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
[/autoit]In diesem Fall eben Kategorie 1 und Kategorie 2 sollen nicht ausgewählt werden können.
Ist das möglich?