Solved

Listview change Item

Posted on 2000-03-05
3
308 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
Comment Utility
Does ListView1.DouleBuffered := true help?
0
 
LVL 2

Expert Comment

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

good luck
hubdog
0
 

Author Comment

by:snoopy_Spy
Comment Utility
Thanxs
That works !
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now