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 

object dynamic creation error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI
View previous topic :: View next topic  
Author Message
Alain Perret
Guest





PostPosted: Thu Oct 20, 2005 9:30 am    Post subject: object dynamic creation error Reply with quote



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





PostPosted: Sat Oct 22, 2005 9:41 am    Post subject: Re: object dynamic creation error Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI 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.