Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Listview change Item

Posted on 2000-03-05
3
Medium Priority
?
319 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

824 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