Synapse Posted March 17, 2008 Posted March 17, 2008 (edited) 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 March 18, 2008 by Synapse
atb Posted March 18, 2008 Posted March 18, 2008 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.
Synapse Posted March 18, 2008 Author Posted March 18, 2008 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_EndUpdateat 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.
GaryFrost Posted March 18, 2008 Posted March 18, 2008 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.
Synapse Posted March 18, 2008 Author Posted March 18, 2008 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
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