Listviews, checkboxes and ItemActivate.OneClick

  • Thread starter Thread starter Johan Johansson
  • Start date Start date
J

Johan Johansson

Like so many others I've been trying to make a listview with checkboxes
that doesn't toggle the check state of an item when the item is
selected. And then I found it: all you need to to is set the Activate
property to ItemActivate.OneClick. Which isn't necessarily *entirely*
obvious from the documentation:

"The user must single-click to activate items. The cursor changes to a
hand pointer cursor, and the item text changes color as the user moves
the mouse pointer over the item."

Can anyone give me any kind of logical explanation, no matter how
twisted (non-twisted works too!), why OneClick causes the checkbox to
behave the way I want?

Thanks
Johan
 
The only exlanation I offer is that when activation type set to TwoClicks,
the single click is interpreted as checkbox toggle. In case of OneClick, the
click is intercepted to raise ItemActivate event and does not toggle the
checkbox
 
Back
Top