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 

New component based on TDBLookupComboBox

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





PostPosted: Mon Nov 10, 2003 1:27 pm    Post subject: New component based on TDBLookupComboBox Reply with quote



Hi,

I'm trying to write a new component based on TDBLookupComboBox and
having a problem in constructor procedure:


constructor TsDBLookupComboBox.Create(AOwner: TComponent);
begin
inherited Create(AOwner);

Font.Name := 'Lucida Console';
end;


I'm trying to change the default Font name. When I put the new component
in form, I get the error message:
"Control '' has no parent window"

What's the problem? How can I solve this?


Thanks in advance

Laercio

Back to top
Laercio Amici
Guest





PostPosted: Mon Nov 10, 2003 4:07 pm    Post subject: Re: New component based on TDBLookupComboBox Reply with quote



Its work. Thanks a lot!
Laercio



János Schmidt wrote:
Quote:
Hi Laercio,

Put your setting in the CreateWnd(), where the parent is assigned already.

Regards
János


"Laercio Amici" <lamici (AT) ig (DOT) com.br> schrieb im Newsbeitrag
news:3faf91bb (AT) newsgroups (DOT) borland.com...

Hi,

I'm trying to write a new component based on TDBLookupComboBox and
having a problem in constructor procedure:


constructor TsDBLookupComboBox.Create(AOwner: TComponent);
begin
inherited Create(AOwner);

Font.Name := 'Lucida Console';
end;


I'm trying to change the default Font name. When I put the new component
in form, I get the error message:
"Control '' has no parent window"

What's the problem? How can I solve this?


Thanks in advance

Laercio






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.