同意karxios的分析:
TComponent.Owner的Help中
“By default, a form owns all components that are on it.”
TControl.Parent
“The parent of a control is the control that contains the control”
可见.
ControlCount,ComponentCount的区别,不是 控件父类子类的关系,
而是基于component不同属性的组织形式的关系。
ComponentCount是基于TComponent.Owner的关系
ControlCount是基于TControl.Parent的关系
VCL HELP
Note: The Parent property declared in TControl is similar
to the Owner property declared in TComponent, in that
the Parent of a control frees the control just as the
Owner of a component frees that Component. However,
the Parent of a control is always a windowed control
that visually contains the control, and is responsible
for writing the control to a stream when the form is saved.
The Owner of a component is the component that was passed
as a parameter in the constructor and, if assigned, initiates
the process of saving all objects (including the control and
its parent) when the form is saved.