Creating a component with named sub-components?

前端 未结 3 1949
长情又很酷
长情又很酷 2020-11-30 07:17

I need to know the basics behind making a component produce and manage sub-components. I originally tried this by creating a TCollection, and tried to put a nam

3条回答
  •  自闭症患者
    2020-11-30 07:32

    Implement TCollectionItem.GetDisplayName to "name" the collection items.

    And concerning the collection: when this is a published property, the collection will automatically be named as the property name.

    Be careful to implement GetOwner when you create properties of TPersistent.

提交回复
热议问题