Jump to content
Sign in to follow this  
peethebee

Fast update ListView

Recommended Posts

peethebee

Hi!

I need a way how to stop a listview from redrwing itself after inserting an item because I add a large amount of data to it in a loop.

I think I remember having seen a for doing so, but neither the help file nor the forum search gave me a hint again.

Thanks for help,

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites
amanda089

You can stop some of the flickering using $LVS_EX_DOUBLEBUFFER (search it, I posted the const elsewhere [forgot which thread]) I haven't found out how to update just a single item yet though.

Share this post


Link to post
Share on other sites
Zedna

$WM_SETREDRAW = 0x000B

GUICtrlSendMsg ($listview, $WM_SETREDRAW,0,0)
While ...
  GUICtrlCreateListViewItem("items", $listview)
WEnd
GUICtrlSendMsg ($listview, $WM_SETREDRAW,1,0)oÝ÷ ÚÚºÚ"µÍÝZTÙ]Ý]JÕ×ÓÐÒË ÌÍÑÜLJBÝZTÙ]Ý]JÕ×ÕSÐÒË ÌÍÑÜLJ

Edited by Zedna

Share this post


Link to post
Share on other sites
peethebee

Thanks you both!

But it unfortunately does not speed up things in my case (Galenda)...

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.