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 

How can I define a Property same as Caption in MyComponent

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Jialing
Guest





PostPosted: Wed Aug 27, 2003 5:07 am    Post subject: How can I define a Property same as Caption in MyComponent Reply with quote




Hi to all
I write a Component. One of its Published Property is Title.
I want set Title when user is writing Title in ObjectInspector
(Same as Caption) now the Title is set after writing.
(after Enter or Exit from corresponding location)
Back to top
Peter Agricola
Guest





PostPosted: Wed Aug 27, 2003 6:51 am    Post subject: Re: How can I define a Property same as Caption in MyCompone Reply with quote



add paAutoUpdate to the returnset of your GetAttributes() method.

Peter

"Jialing" <Jialing (AT) yaho (DOT) com> schreef in bericht
news:3f4c3c9e (AT) newsgroups (DOT) borland.com...
Quote:

Hi to all
I write a Component. One of its Published Property is Title.
I want set Title when user is writing Title in ObjectInspector
(Same as Caption) now the Title is set after writing.
(after Enter or Exit from corresponding location)




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Aug 27, 2003 8:14 am    Post subject: Re: How can I define a Property same as Caption in MyCompone Reply with quote




"Peter Agricola" <spammy (AT) spammer (DOT) com> wrote

Quote:
add paAutoUpdate to the returnset of your GetAttributes() method.

To clearify, GetAttributes() is a method of TPropertyEditor, not the actual
component.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/03




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.