Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Create (AOwner: TComponent);

Posted on 1998-10-06
4
Medium Priority
?
1,025 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 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

604 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