Board index » delphi » Class Registry Implementation
marcrohloff...@bigfoot.com (Marc Rohloff)
![]() Delphi Developer |
Tue, 18 May 2004 01:09:50 GMT
Class Registry Implementation
I wanted to implement a mechanism similar (in most respects) to the
Component Editors. I want to be able to register an editor for a class (or super class). Something like: procedure RegisterComponentEditor(ComponentClass: TComponentClass; function GetComponentEditor(ComponentClass:TComponentClass):TComponentEditorClass; Basically Register... just adds it to an TClassList and Get... My questions is how do I find the BEST Editor for a component class. Say I call: Now if I call GetComponentEditor(TButton). It will find the first Now how do I find the best alternative in the list? Marc Rohloff |