Board index » delphi » Retrieve components for Active Page/Tab sheet??

Retrieve components for Active Page/Tab sheet??

If one has Pagecontrols on a form, is there a way to retrieve only those
components that are on a given page? The componentcount refers back to
the form, which is the same for all the components, irrespective of the
page they are on. I suspect Delphi to quietly generate a form in the
background for every page defined, but hiding it from program control so
there is no way of finding out what form is really active.

Lewie Dekker

 

Re:Retrieve components for Active Page/Tab sheet??


Quote
lewie dekker wrote:

> If one has Pagecontrols on a form, is there a way to retrieve only those
> components that are on a given page? The componentcount refers back to
> the form, which is the same for all the components, irrespective of the
> page they are on. I suspect Delphi to quietly generate a form in the
> background for every page defined, but hiding it from program control so
> there is no way of finding out what form is really active.

> Lewie Dekker

Not sure but doesn't ControlCount contain the child control count for a
given
component?

Rkr

--
                   \|||/
                   /'^'\
                  ( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman                              .
. Delphi Programmer / Analyst             .
. TVisualBasic:=class(None);              .
. May the Source be With You              .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com)  .
. Irvine, CA U.S.A                        .
. E-Mail : rkroman (at) pacbell (dot) net .
. or reidr (at) autobytel (dot) com       .
-------------------------------------------

Other Threads