Solved

Create (AOwner: TComponent);

Posted on 1998-10-06
4
992 Views
Last Modified: 2006-11-17
When I perform a

form[i] = form.create(self);
form[i].visible := true;

It will pop an additional form for me.
However, if I say

button[i] := TButton.Create(Self); or
button[i] := TButton.Create(Form1);
button[i].visible := true;

No button will appear.

How come?
and how do I get it to appear?
0
Comment
Question by:binkzz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 100 total points
ID: 1342093
You need to set its parent like so.....

button[i] := TButton.Create(Self);
button[i].Parent := Form1;
button[i].visible := true;

Regards,
Viktor Ivanov
0
 
LVL 4

Author Comment

by:binkzz
ID: 1342094
(Edited by Computer101) you that's quick..

Here's your A plus an additional 50 points for speed.

Binkzz
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1342095
ThankZ ;->

Vik
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1342096
ThanZ ;->

Vik
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question