Francois and Cosmin, In order to avoid writing a custom editor or any other code to make it working I changed the component logic. Now BCollection simply became a property of ACollectionItem, I can live with that, it also simplifies other things.
Thanks again, Arno Cosmin Prund wrote: > I don't think the IDE will automatically do this for you (as it does for > Tcomponents) but there's a way to do it anyway, using TPropertyEditor. > Just create your own TPropertyEditor descendent and register it using > RegisterPropertyEditor and you'll be able to show whatever you want in > object inspector. Specifically take a look at the following methods: > > GetAttributes; > GetValues; > GetValue; > > Good luck, > Cosmin Prund > >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On >> Behalf Of Arno Garrels >> Sent: Wednesday, November 23, 2005 8:28 PM >> To: Borland's Delphi Discussion List >> Subject: TCollection in component problem >> >> Hello, >> >> A component has two properties of type TCollection, ACollection and >> BCollection. In BCollectionItem I want a property of type ACollectionItem >> selectable in the property editor interactively. >> If that's imposible it would be OK to have any string-property of the >> ACollectionItem selectable instead. >> >> Is this possible? If yes how? >> >> Thanks >> >> Arno Garrels >> _______________________________________________ >> Delphi mailing list -> [email protected] >> http://www.elists.org/mailman/listinfo/delphi > > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

