Solved

Listview change Item

Posted on 2000-03-05
3
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month6 days, 9 hours left to enroll

634 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