It is quite simple to enumerate Form components
for (int i=0;i<ComponentCount;i++)
{
ShowMessage(Components[i]->Name);
//.....
}
but the same thing does not work if I want to enumerate only the components which are located on Panel.
for (int i=0;i<Panel1->ComponentCount;i++)
{
ShowMessage(Panel1->Components[i]->Name);
//.....
}
because
Panel1->ComponentCount;
is just zero while having several components on Panel. So, how can I enumerate the child components of Panel?