| View previous topic :: View next topic |
| Author |
Message |
Alain Perret Guest
|
Posted: Thu Oct 20, 2005 9:30 am Post subject: object dynamic creation error |
|
|
Hi
I want to dinamically create objetcs in a form.
I have written the following code:
procedure TForm1.addButton;
var Btn: TButton;
begin
Btn := TButton.Create(Self);
Btn.Parent := Self;
end;
When I compile I got this message:
Types incompatibles : 'TWidgetControl' et 'TForm1'
What is incoorect in this code? How can I cretae my object?
Thanks
Alain Perret
|
|
| Back to top |
|
 |
Riki Wiki Guest
|
Posted: Sat Oct 22, 2005 9:41 am Post subject: Re: object dynamic creation error |
|
|
Hoi Alain
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Further, this news
group do not officially exist.
Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
|
|
| Back to top |
|
 |
|