Solved

How to make a TForm a component on another TForm

Posted on 2008-10-15
4
232 Views
Last Modified: 2011-09-20
This is a case of "I knew it once - but I can't remember - or find it!"

I'm pretty sure it is possible to place a TForm on another form.  But I can neither figure it out nor concoct a search that comes up with the information I need.

Some example code would be nice to refresh my memory.
0
Comment
Question by:DMTrump
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
2266180 earned 500 total points
ID: 22727010
say form1:TForm1; form2:TForm2; you place form2 on form1 like this:

begin
  form2.parent:=form1;
end;

ta-da :D (dont' forget to set size, position accordingly ;) )
0
 
LVL 1

Expert Comment

by:jplevene
ID: 22729391
I think you are talking about frames.

In your project goto File and New and create a frame.  Design it and save it.

In your form under "Standard" on the components pallette, the first entry should be Frames, click this and click on the form where you want to insert it.  A dialog will then appear with a list of all the frames in your project, select which one and voila.

You can align frames as none, client, top, botton, etc.  You can do customisation, etc.
0
 

Author Closing Comment

by:DMTrump
ID: 31506533
ta-da Indeed!  I knew it was something simpl but for some reason I just couldn't remember!  What would I do without you ciuly?

(Sorry about the delay in responding - for some reason my email put the EE notices in my spam box!)
0
 

Author Comment

by:DMTrump
ID: 22732741
jplevene,  Thanks for the pointer about frames - in this case the much simpler solution provided by ciuly was what I was looking for (and knew was doable)  But I appreciate the reminder about Frames - something I've not used a lot and need to think more about!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help on project with Soap 10 54
groupNoAdj 7 95
Delphi IDE crash without error message ... 7 90
Tembedded WB animatid gifs not animated on some pcs 2 80
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

773 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