Solved

Listview change Item

Posted on 2000-03-05
3
310 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
proper way to parse text with delphi 7 101
Print Graphic and Text to Epson TM-T88v 12 182
Run video youtube webbrowse 10 57
Error E2158 compiling with Delphi XE10 Seattle 2 88
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

14 Experts available now in Live!

Get 1:1 Help Now