IonicWind Software

IWBasic => GUI Central => Topic started by: billhsln on July 19, 2014, 08:39:50 AM

Title: Listview Checkbox
Post by: billhsln on July 19, 2014, 08:39:50 AM
I am working on a program that loads a listview and I set some checkboxes on and I leave some off depending on my criteria.  The question is, is there a way to tell when some one clicks and changes a checkbox?  I am keeping a count of those that are checked and if the user changes one either by checking it or unchecking it, I would like to be able to update the counter correctly.

Thanks,
Bill
Title: Re: Listview Checkbox
Post by: Sam on July 19, 2014, 10:43:13 AM
Bill, to my knowledge, there is no listview notification message that directly alerts the parent window to a change in the checkbox state.
That being the case, you would need to trap the click notification, do a hit test to get the item number, and manually see if the checkbox state has changed.

Sam
Title: Re: Listview Checkbox
Post by: LarryMc on July 19, 2014, 12:50:37 PM
The attached program has everything in it you need to solve your problem.
Title: Re: Listview Checkbox
Post by: billhsln on July 26, 2014, 08:10:05 AM
Sorry it took me so long to get back.

That is exactly what I needed.  Works exactly as I need it to.  Will upload the finished product so others can us or learn from.

Thanks,
Bill