Jump to content

ListView Question - [SOLVED]


Recommended Posts

Hi...i wanna ask you if someone has an idea on how to populate a List View faster and avoiding the flickering thing....In my app i have to load from a SQLite db into the list view about a 1000 lines...but i noticed that it takes some time...and theres an ugly flickering...

I experimented filling the list with these 2 function:

GUICtrlCreateListViewItem("a|b|c", $listview_handle)

and

_GUICtrlListView_AddItem($hWnd, $sText[, $iImage = -1])

_GUICtrlListView_AddSubItem($hWnd, $iIndex, $sText, $iSubItem[, $iImage = -1])

unfortunately the result is the same (flicker + long time to load)

Any ideas on how to solve this?

Thx in advanced for any of your replies :)

Edited by Synapse
Link to comment
Share on other sites

not sure if i understood you correctly, but try to turn off the update by

_GuiCtrlListView_BeginnUpdate

at the start of your loop and

_GuiCtrlListView_EndUpdate

at the end.

Hi i apreciate the effort...unfortunately the problem is still there (maybe a little worse now). Maybe there`s no way to get rid of this flicker/slow loading of the List View. :)

Link to comment
Share on other sites

Hi i apreciate the effort...unfortunately the problem is still there (maybe a little worse now). Maybe there`s no way to get rid of this flicker/slow loading of the List View. :)

Should work fine if you put _GuiCtrlListView_BeginnUpdate before the loop and _GuiCtrlListView_EndUpdate after the loop, not in the loop.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

i found the problem....my View List was in a tab...so when i added the items...because of the tab behind it made some freaky flickers....so if you want to do some View List and tabs...i suggest use Child GUIs...

Cheers

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...