VCL - TCollection/TCollectionItem

Be able to change the class of the collection items created by
"TCollection.Add "
(This can be done currently using Pointers - but of course this is not
guaranteed to work in the future)
 
Basically would like to be able to set the TCollectionItem Class, but the
class must be a derivative/descendant of the original class used in the
collection constructor.

e.g.  using the THeaderControl as an example

TMyHeaderItems = Class( THeaderSection );
THeaderControl.Sections.ItemClass := TMyHeaderItems;

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

Reply via email to