Discussion:
ListView event on item check?
(too old to reply)
Harish
2008-06-16 03:27:13 UTC
Permalink
TListView in report style with checkboxes:
Is there an event that is triggerred
specifically when a ListItem is checked?
OnSelectItem() does not get triggerred.
OnChange() gets triggered but with
TITemChange = ctState value.
How can I know when an item is checked?
--Harish
Remy Lebeau (TeamB)
2008-06-16 17:01:58 UTC
Permalink
Is there an event that is triggerred specifically when
a ListItem is checked?
Not specifically, no.
OnChange() gets triggered but with TITemChange = ctState
value.
As it should be, because CheckBoxes are implemented using state images. So,
you can either trigger off of that, or else use the OnMouse... events to
know when the user is clicking on a state icon via the ListView's
GetHitTestInfoAt() method.


Gambit

Loading...