edit - new code - almost there
#include <GuiConstants.au3> #include <GuiListView.au3> #Include <File.au3> #Include <Array.au3> Dim $Btn_TestScroll, $Btn_Exit, $msg, $Status, $i $dirList = _FileListToArray (@FavoritesDir, '*', 2) If (Not IsArray($dirList)) and (@error = 1) Then MsgBox(0, "", "No Files\Folders Found.") Exit EndIf GUICreate("ListView Scroll", 392, 322) $listview = GUICtrlCreateListView("URL", 40, 30, 310, 149) ;$FileList =12 For $TEST1 In $dirList GUICtrlCreateListViewItem($TEST1, $listview) $FileList = _FileListToArray (@FavoritesDir & "\" & $TEST1, '*.url', 1) If (Not IsArray($FileList)) and (@error = 1) Then MsgBox(0, "", "No Files\Folders Found.") Exit EndIf $rows = UBound($FileList) $dims = UBound($FileList, 0) For $r = 0 To UBound($FileList, 1) - 1 For $dims in $FileList -$r GUICtrlCreateListViewItem($dims, $listview) Next Next Next $Btn_TestScroll = GUICtrlCreateButton("Scroll Test", 150, 230, 90, 40) $Btn_Exit = GUICtrlCreateButton("Exit", 300, 260, 70, 30) $Status = GUICtrlCreateLabel("Remember items are zero-indexed", 0, 302, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER)) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit ExitLoop Case $msg = $Btn_TestScroll For $i = 10 To 50 Step 10 _GUICtrlListViewScroll ($listview, 0, $i) Sleep(500) _GUICtrlListViewScroll ($listview, 0, $i - ($i * 2)) Sleep(500) Next EndSelect WEnd Exit
When I do this I get each folder listed countless times. Can anyone point me in the right direction.
Thanks
EDIT =- Changed code - but same thing happens
EDIT 2 - thought I found my error - but now it says it must be declared as an object?
Edited by nitekram, 13 July 2006 - 02:34 AM.






