Items in ListBox selektieren

  • Hi,

    eine Frage:

    wie bekomme ich die Items in der List beim Start selektiert bzw. über einen Button?

    Habe _GUICtrlListView_SetItemSelected gefunden, gibt es so etwas auch für GUICtrlList ?

    Gruß,
    svart


    [autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <Array.au3>
    #include <GuiListBox.au3>

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

    GUICreate("GUI")
    $DropDownList = GUICtrlCreateList("", 10, 90, 129, 180, BitOR($LBS_STANDARD, $LBS_EXTENDEDSEL, $LBS_DISABLENOSCROLL, $LBS_SORT, $WS_BORDER, $WS_VSCROLL))
    GUISetState(@SW_SHOW)

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

    Local $aTEST = [3, "TEST1","TEST2","TEST3"]
    For $i = 1 To UBound($aTest) - 1
    GUICtrlSetData($DropDownList, $aTest[$i], True)
    Next

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

    $msg = 0
    While $msg <> $GUI_EVENT_CLOSE
    $msg = GUIGetMsg()
    WEnd

    [/autoit]