Hiya, a few questions on TCollections....

Firstly, in my TCollectionItem class Ive added a TStrings property, I can
bring up the property editor for this ok, but the 'code editor' button (to
allow editing in the IDE) is disabled, is there any way to enable this?

Also, when I create my TCollection object, I pass the TCollectionItem
class I wish to use, is it possible to have different Item classes in one
collection?  I was thinking of something like:

  TBaseCollectionItem = class(TCollectionItem)
    ..
    <some basic functionality>

  TSpecialCollectionItem = class(TBaseCollectionItem)
    ..
    <overiding the behavior of the base slightly>

  TAnotherCollectionItem = class(TBaseCollectionItem)
    ..
    <overiding yet more behaviour of the base/standard>

Is that possible?

I was thinking I could dupe the behaviour of TCollection.Add and pass in
the class to create, but looking in the .dfm no classnames are mentioned
for the items.

-- 
Inspired by the taste of horror, proud to be insane forever
Let out the killer in me! (c) Dismal Euphony
Now Playing: <no audio cd present>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to