FP SDK ListView ItemCheck
Gomez
✭
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
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
0
Comments
-
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
Micky0 -
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
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings