We help IT Professionals succeed at work.

Blinking item in TCustomListView

baudewyns
baudewyns asked
on
How to get blinking items in a ListView without flickering ?
I tried unsuccessfully :
ControlStyle:= ControlStyle + [csOpaque
I use a TTimer to repaint every 500 mS.
Comment
Watch Question

Commented:
If blinking is the only problem, then add this code to the forms oncreate:
ListView1.DoubleBuffered := true;

Author

Commented:
I have flashing items. This is not the problem. But I get flickering due to the refresh of the control every 500 ms.
How to prevent flickering when repainting a component ?
My Own ListView class uses TCustomListView as ancestor.

Author

Commented:
DoubleBuffered := true is working fine
Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.