On Mon, 3 Mar 2008, Inoussa OUEDRAOGO wrote:
> 2008/3/3, Michael Van Canneyt <[EMAIL PROTECTED]>: > > > > > > On Mon, 3 Mar 2008, Ales Katona wrote: > > > > > If you make a "class of something" published, it will compile, but the > > > property won't show in the OI. I'm not sure if it's supposed to work so > > > I'm asking here.. Vincent also mentioned "TTypeKind support tkClass" :) > > > > > > So.. should it be possible to use "class of " as published properties in > > > the OI? > > > > > > No, because you cannot enter a value anyway. > > How will you resolve a text to a class pointer ? > > If the class is registered ( using RegisterClass() ), it can be found > with FindClass(). > > <code unit="classes"> > procedure RegisterClass(AClass: TPersistentClass); > function FindClass(const AClassName: string): TPersistentClass; > </code> You will find that this is almost never used. None of the classes in the FCL/LCL is registered. They need not be registered, only exceptional cases must be registered using this callback. That rather limits the use IMHO ? Michael. _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
