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 

TCollection design-time functionality

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





PostPosted: Fri Jan 13, 2006 7:42 pm    Post subject: TCollection design-time functionality Reply with quote



Hi,

I am new to component building and I'm trying to get some code to
execute when editing a TCollection property in the Object Inspector.
I'm using Delphi 2006 (excellent!).

In my component, I have created my own custom TCollection and my own
custom TCollectionItem object. When I drop my object on a form and
click on the property, the IDE displays the Collection Editor. What I
wish to do is execute some code just before the Delphi IDE displays the
Collection Editor.

Basically, I'm trying to copy the behaviour of the TADOStoredProc
"Parameters" property. In the Object Inspector, if you click on the
"..." button in the "Parameters" property, some code runs that
automatically populates this collection if there are no items present.
This code runs before the Collections Editor appears.

Does anybody know how to replicate this behaviour, or will I have to
build my own custom editor?

Thanks,

Larry
Cape Town.
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.