TOwnedCollection is a TCollection descendant maintaining an "Owner" in order to obtain property path information at design-time. It is defined in Classes.pas unit.
Questions tagged [townedcollection]
6 questions
7
votes
2 answers
How to invoke a component's property editor at design time
I have created a component derived from TCustomPanel. On that panel I have a published property of a class derived from TOwnedCollection. All is working well and clicking the ellipsis in the object inspector for that property opens the default…

avenmore
- 2,809
- 3
- 33
- 34
5
votes
1 answer
Using TOwnedCollection descendant in Delphi
I'm trying to create a custom component with a collection property. However if I try to open the collection editor during design time by clicking "..." button in object inspector, nothing happens. What I am missing?
Here's my TCollection…

Harriv
- 6,029
- 6
- 44
- 76
1
vote
1 answer
delphi TCollection count not increasing after Add
i have the types
TNotifyReply = class(TCollectionItem)
TNotifyReplylist = class(TOwnedCollection)
NotifyReplylist := TNotifyReplylist.Create(self, TNotifyReply);
After calling this function (Any number of times), Count it still zero
function…

Christopher Chase
- 2,840
- 6
- 36
- 57
1
vote
1 answer
TCollection PropertyEditor with editable Columns
for my own TCollection descendant I want to extend the collection property editor. I want to see more columns for other properties of my TCollectionItem. And I am a lucky because it is pretty easy. The only thing I want to do was to override these…

Heinz Z.
- 1,537
- 3
- 14
- 29
0
votes
1 answer
How to add a 2-times derived class of TCollectionItem to TOwnedCollection?
I want to implement a collection or list using TOwnedCollection / TCollectionItem. I need a persistent list (to load and create from a FileStream) of classes with polymorphism.
Here is (part of) my code so far, but I didn't succeed to create the…

Lotfi
- 660
- 1
- 6
- 21
0
votes
1 answer
Using TCollection with an already-defined class
(Note: This is somewhat related to my last question).
I am new to using TCollection in Delphi, and am still wrapping my head around the various ways to handle one-to-many class/property-item relationships. Exploring TCollection and TCollectionItem,…

Jamo
- 3,238
- 6
- 40
- 66