Solved

Create (AOwner: TComponent);

Posted on 1998-10-06
4
960 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
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 100 total points
Comment Utility
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
Comment Utility
(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
Comment Utility
ThankZ ;->

Vik
0
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
ThanZ ;->

Vik
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now