 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Laercio Amici Guest
|
Posted: Mon Nov 10, 2003 1:27 pm Post subject: New component based on TDBLookupComboBox |
|
|
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
|
Posted: Mon Nov 10, 2003 4:07 pm Post subject: Re: New component based on TDBLookupComboBox |
|
|
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 |
|
 |
|
|
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
|
|