Board index » delphi » Writting TClassProperty

Writting TClassProperty


2003-10-23 09:46:38 PM
delphi159
Hi
I have a component where I want put a ClassProperty having subproperties.
How can I use GetProperties method, I didn't found any examples or
documentation about this, except I must override and pass apropriate
property editors
Thanx for any good advice.
 
 

Re:Writting TClassProperty

On Thu, 23 Oct 2003 15:46:38 +0200, Narcis Florea<XXXX@XXXXX.COM>
said ...
Quote
Hi

I have a component where I want put a ClassProperty having subproperties.
How can I use GetProperties method, I didn't found any examples or
documentation about this, except I must override and pass apropriate
property editors
I am not sure if I understood but you would normally create a TPErsistent
descendant class with your sub-properties and then create an instance of
this in you rmain class and publish the whole class as a property of the
main class. You don't need any custom property editors for this.
Look at the source code for the TFont property for an example of this.
Marc