Using C++ Builder 10.4 Community edition, I have a TGroupBox populated with some TCheckbox and TButton controls. I want to iterate over the TGroupBox to get the state of each TCheckBox. How can I do this?
I tried this:
auto control = groupBxLB->Controls;
for( uint8_t idx = 0; idx < groupBxLB->ChildrenCount; idx++) {
if( control[idx] == TCheckBox) {
//get the state of the TCHeckBox
}
}
but no success.
Does anybody have an idea how I can do this?