FP SDK ListView ItemCheck

Hello

I am developing a FP app, using a listview control with Checkedboxes (I’d like to use the ABB control because of its layout).

I need to intercept the event that occurs when the state of a checkbox changes, just like ListView.ItemCheck Event in for the standard windows form control.

I can’t find this event..doesn’t it exist in the ABB control?or anything similar? (the same question as for CheckedItems Property of listview)

Thanks in advance

BR

Hello Gomez,

there is no direct event to detect if a checkbox has been changed, but you you could use the event “ItemActivate” to do this.

Via the property “SelectedItem” or “SelectedIndex” of the listview it is possible to get access to the activated listview item.

Example:

private void listView1_ItemActivate(object sender, EventArgs e){

if (listView1.SelectedItem != null){

ABB.Robotics.Diagnostics.Trace.WriteLine("Item activate " + listView1.SelectedItem.Text + ": " + listView1.SelectedItem.Checked.ToString());

}}

Best regards

Micky

Thanks for responding

This was the solution I also was thinking to use, but I wanted to be sure that there is nothing already implemented as for collections of selected items and their events. Ok, I’ll do it manually..

Thanks again

BR