- TComponent::SetParentComponent -
- TComponent::TComponent - C++ Bui
- TComponent::~TComponent - C++ Bu
- TComponent::ValidateContainer -
- TComponent::WriteState - C++ Bui
- TComponent::UpdateAction - C++ B
- TComponent::UpdateRegistry - C++
- TComponent::VCLComObject - C++ B
- TComponent::SetSubComponent - C+
- TComponent::Updating - C++ Build
C++ Builder 参考手册 ➙ TComponent ➙ SetParentComponent
头文件:#include <System.Classes.hpp>
命名空间:System::Classes
类:TComponent
访问权限:protected:
函数原型:
DYNAMIC void __fastcall SetParentComponent(TComponent* Value);
System::Classes::TComponent::SetParentComponent 是 System::Classes::TComponent 的成员函数,设置组件的 Parent (容器组件)。
参数:
Value:组件的新 Parent;
返回值:
无。
- 设置组件的 Parent (容器组件),这是组件内部使用的方法,不要直接调用;
- 可以重载这个方法来实现在设置 Parent 的时候执行一段代码。
参考:
- Vcl::Controls::TControl::Parent
- System::Classes::TComponent::HasParent
- System::Classes::TComponent::GetParentComponent
- System::Classes::TComponent::Owner
- System::Classes::TComponent
- System::Classes::TPersistent
- System::TObject
- VCL 类继承关系
C++ Builder 参考手册 ➙ TComponent ➙ SetParentComponent
网友评论