For the ListView control there doesn't seem to be a method that allows you to 'ischecked' like the listbox control has. Our app has a listview with a checkbox and we want to check if its checked or not.
I tried the download but I couldn't get it to work. I'm using 5.5 SP2. I put the .ino file into the same directory as my .inc and .t files and put the use statement to say use "CheckListView.inc" (as noted in the readme). When I try to compile it says that the .inc doesn't exist.
Could someone send me a sample of the their code or any other help. Thanks.
I looked for setitemimagestate in my 5.5 SP2 and it doesn't exist. The other question is ... can you give me an example of the following.
I have a listview where the 1st column is text and the 2nd, 3rd, and 4th columns are checkboxes. I need to be able to select a specific row and then change the state of each of the checkboxes. Any examples / help would be appreciated.
My mistake. I thought that I had read that in the release notes. I guess it was the GetItemImageState that I saw. I don't know what the difference is between the GetItemImageIndex and GetItemImageState is.
I usually select the ListView item and then press the spacebar to toggle the checkbox but that probably wouldn't work for you since you have multiple checkbox's. I would try the following:
RECT rCheckBox = Dialog.ListView.GetItemRect(ItemName,True,ColNum);