Listview/ In die einzelnen Dimensionen/Cols werte einfügen (ala Excel)

  • Meine Probleme:
    1. Möchte, dass eine neue Dimension nicht auf einmal sondern Doppelklick erstellt wird.
    2. Wie kann ich in die einzelnen Dimensionen/Cols Werte einfügen? (Ala Excel Tabelle)

    [autoit]


    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <Array.au3>
    $i = 0
    Example()
    Func Example()
    Local $listview, $button, $item1, $item2, $item3, $msg
    Local $itemArray[50][3]
    GUICreate("listview items", 220, 250, 100, 200, -1, $WS_EX_ACCEPTFILES)
    GUISetBkColor(0x00E0FFFF) ; will change background color
    $listview = GUICtrlCreateListView("col1 |col2|col3 ", 10, 10, 200, 150);,$LVS_SORTDESCENDING)
    $button = GUICtrlCreateButton("Value?", 75, 170, 70, 20)
    $itemArray[0][0] = GUICtrlCreateListViewItem("... | | ", $listview)

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

    GUICtrlCreateInput("", 20, 200, 150)
    GUICtrlSetState(-1, $GUI_DROPACCEPTED) ; to allow drag and dropping
    GUISetState()

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

    Do
    $msg = GUIGetMsg()
    Select
    Case $msg = $button
    MsgBox(0, "listview item", GUICtrlRead(GUICtrlRead($listview)), 2)
    Case $msg = $listview
    MsgBox(0, "listview", "clicked=" & GUICtrlGetState($listview), 2)
    Case $msg = $itemArray[$i][0] ;Get it to only do the case on doubleclicking///This Case should change to $msg = $item5 when done, after that $item6, etc
    GUICtrlSetData($itemArray[$i][0],"insert on click|insert on click|insert on click")
    $itemArray[$i+1][0] = GUICtrlCreateListViewItem("... | | ", $listview)
    $i=$i+1
    ;$item5 = GUICtrlCreateListViewItem("... | | ", $listview)
    EndSelect
    Until $msg = $GUI_EVENT_CLOSE
    _ArrayDisplay($itemArray)
    EndFunc ;==>Example

    [/autoit]