title: Get all child elements of Tpagecontrols
body: <p>I have a page control on my form. This page control has two or three tabs. Each tab has a few other controls like button, label panel etc. I am able to find all controls but if some control sits on top of the panel, then I am unable to find that control</p>
  
  <p>My code:</p>
  
  <pre><code>for I := 0 to Pagecontrol.Pagecount -1 do
  begin
    for J := 0 to pagecontrol.pages[i].controlcount - 1 do
      showmessage(pagecontrol.pages[i].controls[J].name) // not able to find button whose parent is panel
  end
  </code></pre>
  
  <p>and when i do </p>
  
  <pre><code>for J := 0 to pagecontrol.pages[i].componentscount- 1 do  // it does not enter into loop
  </code></pre>