Solved

Listview change Item

Posted on 2000-03-05
3
314 Views
Last Modified: 2010-04-04
When i change the Icon of an Item in a Listview the Listview is "flashing" ?? "blinking" i don't know the correct word ...
There are only 2 Items in the Listview and i update them every 300 ms !

My Code :
ListView1.Items.BeginUpdate;
ListView1.Items[0].ImageIndex := t;
ListView1.Items[1].ImageIndex := t+3;
ListView1.Items.EndUpdate;
inc(t);
if t > 2 then t := 0;
0
Comment
Question by:snoopy_Spy
3 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
ID: 2585571
Does ListView1.DouleBuffered := true help?
0
 
LVL 2

Expert Comment

by:hubdog
ID: 2585846
try
  lockwindowupdate(listview1.handle);
  //here change imageindex
  lockwindowupdate(0);

good luck
hubdog
0
 

Author Comment

by:snoopy_Spy
ID: 2585868
Thanxs
That works !
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question