jcmn Posted April 16, 2008 Share Posted April 16, 2008 Hi I have this code CODE $vv=FileOpen("c:\ine\icor2008\lista.txt",0) while 1 $line=FileReadLine($vv) if $line="" then ExitLoop EndIf $aa=GUICtrlCreateListViewItem ( $line, $ListView1 ) WEnd FileClose($vv) Where from a text line I create items to a listview ($Listview1). The problem is that I have 8000 lines in the file but only 4000 (aprox.) are added to the listview The listview is defined before as defined next $ListView1 = GUICtrlCreateListView("area_am|aloj|agrega|split|rot|tipoam|telef|nome|data|A5|A6|A7|hidine", 24, 16, 553, 265, BitOR($LVS_REPORT,$LVS_SINGLESEL,$LVS_SHOWSELALWAYS,$LVS_AUTOARRANGE), BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT,$LVS_EX_HEADERDRAGDROP )) Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 16, 2008 Share Posted April 16, 2008 Use Beta (3.2.11.7 last I looked), which ups the max control count from 4K, and use the _GuiCtrlListView_* functions (see the Beta help file). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Zedna Posted April 16, 2008 Share Posted April 16, 2008 AutoIt beta 3.2.11.2- Changed: Maximum controls in a GUI window 4093 -> 65532.So if you recompile your script with new beta you will ne able create about 65500 listview items by GUICtrlCreateListViewItem() Note:If you use _GUICtrlListView_AddItem() no such max. items limitation exists no matter of AutoIt version but it's slower. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now