BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Writting TClassProperty

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Narcis Florea
Guest





PostPosted: Thu Oct 23, 2003 1:46 pm    Post subject: Writting TClassProperty Reply with 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

Thanx for any good advice.


Back to top
Marc Rohloff
Guest





PostPosted: Thu Oct 23, 2003 2:26 pm    Post subject: Re: Writting TClassProperty Reply with quote



On Thu, 23 Oct 2003 15:46:38 +0200, Narcis Florea<narcis (AT) terrasoft (DOT) ro>
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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.