1. Computing & Technology

Discuss in my forum

in Delphi TIPS :: The TListView Delphi control displays a list of items in a fashion similar to how Windows Explorer displays files and folders. Unfortunately, the TListView does not raise an event when the "Checked" state changes for a TListItem (when ViewStyle is vsReport and Checkboxes is set to true).

Read the full article to learn how to Implement the On Item Checked Event for the TListView Delphi control.

Related:

Comments
May 15, 2007 at 12:31 pm
(1) Steve Trefethen :

Hi Zarko,
Have you logged this in QC? Seems like this is a bug that we need to get fixed.

May 15, 2007 at 2:45 pm
(2) Zarko Gajic :

Steve,

I don’t see this as a bug, but as a missing feature.

Should those also be added to the QC?

Note: there is the OnChange event that can be used to get notified when the state of a list view item changes – but this change can be either “selection” or “check box state change” (Change: TItemChange = ctState).

Together with OnChanging, by storing the Checked property of the Item that is going to have its State changed, we can mimic the OnItemChecked event – that would be another approach.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.