Use pixel property of the picture of the object
https://support.smartbear.com/testcomplete/docs/reference/program-objects/picture/pixels.html
Example of use:
/**
qa.system.isCheckedTCheckListBox (OBJECT CheckListBox, INTEGER Item, INTEGER CheckColor)
Check state of a TCheckListBox item (must be visible)
CheckListBox is the TCheckListBox object to check
Item is the line number to check
CheckColor is the color code of checkbox. Default value is clBlack
Return true if item is checked
*/
qa.system.isCheckedTCheckListBox = function (CheckListBox, Item, CheckColor = clBlack) {
var found = false;
try {
var image = CheckListBox.Picture(CheckListBox.wItemBounds(Item).Left + 4, CheckListBox.wItemBounds(Item).Top + 7, 8, 8, false);
for (var i = 0;i<8;i++) {
for (var j = 0;j<8;j++) {
if (image.Pixels(i, j) == CheckColor) {
found = true;
break;
}
if (found)
break;
}
}
}
catch(e) {
qa.system.logExceptionByLevel(e, 'isCheckedTCheckListBox()', null, 'Warning');
}
return found;
};