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 

Sub Component

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





PostPosted: Tue Nov 25, 2003 9:54 pm    Post subject: Sub Component Reply with quote



Hi,

I have a TPanel descendant with an encapsulated TEdit and TDBGrid. The edit
and grid both get created dynamically at design/run time. I have exposed a
property of the TEdit as a READ only property in the TPanel descendant with
appropriate GET method. Everything seems to work fine in the designer. I
can set the property and the control responds visually to the change.
However, the change is not saved and does not show up when I run the
program.

It seem to remember that I have to do something to make this happen, but
can't remember what it is...

Thanks in advance,

Nathan


Back to top
Maris Janis Vasilevskis
Guest





PostPosted: Wed Nov 26, 2003 12:18 am    Post subject: Re: Sub Component Reply with quote



In your panel constructor:
FEdit.SetSubComponent(true);

Mahris

Nathan wrote:
Quote:
Hi,

I have a TPanel descendant with an encapsulated TEdit and TDBGrid. The edit
and grid both get created dynamically at design/run time. I have exposed a
property of the TEdit as a READ only property in the TPanel descendant with
appropriate GET method. Everything seems to work fine in the designer. I
can set the property and the control responds visually to the change.
However, the change is not saved and does not show up when I run the
program.

It seem to remember that I have to do something to make this happen, but
can't remember what it is...

Thanks in advance,

Nathan




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.