Array Property, TList, TStringList, or TCollection, etc (Delphi Win32)

前端 未结 2 1553
粉色の甜心
粉色の甜心 2021-01-18 15:57

I am developing various components, and regularly run into the need to have a property that has a \"one-to-many\" relationship, component-to-property-member. The components

相关标签:
2条回答
  • 2021-01-18 16:36

    If they are properties, you can descend from TCollection, and then the IDE and Object Inspector will automatically provide support for them via the TCollection Property editor.

    0 讨论(0)
  • 2021-01-18 16:39

    TObjectList and TInterfaceList / IInterfaceList are my favorites. And there is TThreadList for thread-safe lists. All of them are available in Delphi 6 (or even before).

    0 讨论(0)
提交回复
热议问题