Sign in to follow this  
Followers 0
jcmn

GUICtrlCreateListViewItem maximum number of lines

3 posts in this topic

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 ))

Share this post


Link to post
Share on other sites



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).

:D


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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0