[Lazarus] Published properties of classtypes

Inoussa OUEDRAOGO inoussa12 at gmail.com
Mon Mar 3 16:31:04 CET 2008


2008/3/3, Michael Van Canneyt <michael at freepascal.org>:
>
>
>  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>

-- 
Inoussa O.



More information about the Lazarus mailing list