Solved

How to make a TForm a component on another TForm

Posted on 2008-10-15
4
237 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
[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
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Part One of the two-part Q&A series with MalwareTech.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

617 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