Hi,
ich habe im Moment ein Problem mit einer Listview.
Undzwar baue ich mir die Listview wie folgt zusammen:
Spoiler anzeigen
#include <GUIConstants.au3>
#include <Array.au3>
Dim $array[3][2]
$array[0][0] = "a"
$array[0][1] = "a2"
$array[1][0] = "b"
$array[1][1] = "b2"
$array[2][0] = "c"
$array[2][1] = "c2"
_ArrayDisplay( $array, "Whole array" )
GUICreate("bla",700,700)
GUISetState (@SW_SHOW)
$listview = GUICtrlCreateListView ("Spalte1|Spalte2",20,30,200,150)
For $i = 0 To UBound($array) -1
$item=GUICtrlCreateListViewItem($array[$i][0] & "|" & $array[$i][1],$listview)
GUICtrlSetData(-1,$item)
Next
$button = GUICtrlCreateButton ("next element",75,500,70,20)
Do
$msg = GUIGetMsg ()
Select
Case $msg = $button
$a=GUICtrlRead(GUICtrlRead($listview))
MsgBox(0,"ausgabe",$a)
EndSelect
Until $msg = $GUI_EVENT_CLOSE
Ich wollte jetzt mit dem Button jedes Element durchschalten in der Listview. Also erst wird a|a2 ausgegeben,
dann b|b2 usw. Leider finde ich keinen Ansatz wie ich das realisieren könnte. Ich hoffe mir kann einer helfen.
MfG
EP2