 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Eddy Fontaine Guest
|
Posted: Fri Jan 21, 2005 1:35 pm Post subject: Newbie: What is the difference between a 'Form' & a 'Frame' |
|
|
Sounds stupid, I don't see much difference when i check properties...?
Thanks !
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Fri Jan 21, 2005 3:46 pm Post subject: Re: Newbie: What is the difference between a 'Form' & a 'Fra |
|
|
Eddy Fontaine wrote:
| Quote: | Sounds stupid, I don't see much difference when i check properties...?
|
The difference should be apparent once you try using them.
Forms can stand by themselves. That's why a default project has a form
and not a frame.
Frames are like templates. Design a frame, attach event handlers for its
contents, and then place instances of that frame elsewhere in your program.
Frames were introduced in Delphi 5. Before that, people used forms to
get the same "template" effect, but it was more complicated because they
had to make the form stop acting like a standalone form, such as by
hiding its title bar.
--
Rob
|
|
| Back to top |
|
 |
Eddy Guest
|
Posted: Sat Jan 22, 2005 2:07 pm Post subject: Re: Newbie: What is the difference between a 'Form' & a 'Fra |
|
|
Thanks Rob,
I don't 'feel' the difference yet, but i will make some tests to figure
out...
Cheers,
Eddy.
"Rob Kennedy" <me3 (AT) privacy (DOT) net> wrote
| Quote: | Eddy Fontaine wrote:
Sounds stupid, I don't see much difference when i check properties...?
The difference should be apparent once you try using them.
Forms can stand by themselves. That's why a default project has a form
and not a frame.
Frames are like templates. Design a frame, attach event handlers for its
contents, and then place instances of that frame elsewhere in your
program.
Frames were introduced in Delphi 5. Before that, people used forms to
get the same "template" effect, but it was more complicated because they
had to make the form stop acting like a standalone form, such as by
hiding its title bar.
--
Rob
|
|
|
| Back to top |
|
 |
Martin Harvey (Demon acco Guest
|
Posted: Sat Jan 22, 2005 2:46 pm Post subject: Re: Newbie: What is the difference between a 'Form' & a 'Fra |
|
|
On Sat, 22 Jan 2005 14:07:43 GMT, "Eddy" <eddy.fontaine (AT) pandora (DOT) be>
wrote:
| Quote: | Thanks Rob,
I don't 'feel' the difference yet, but i will make some tests to figure
out...
|
It's rather similar to the distinction between a page and a frame in
HTML...
MH.
|
|
| Back to top |
|
 |
Jamie Guest
|
Posted: Sat Jan 22, 2005 6:28 pm Post subject: Re: Newbie: What is the difference between a 'Form' & a 'Fra |
|
|
Eddy wrote:
| Quote: | Thanks Rob,
I don't 'feel' the difference yet, but i will make some tests to figure
out...
Cheers,
Eddy.
"Rob Kennedy" <me3 (AT) privacy (DOT) net> wrote in message
news:35cme3F4igdhqU1 (AT) individual (DOT) net...
Eddy Fontaine wrote:
Sounds stupid, I don't see much difference when i check properties...?
The difference should be apparent once you try using them.
Forms can stand by themselves. That's why a default project has a form
and not a frame.
Frames are like templates. Design a frame, attach event handlers for its
contents, and then place instances of that frame elsewhere in your
program.
Frames were introduced in Delphi 5. Before that, people used forms to
get the same "template" effect, but it was more complicated because they
had to make the form stop acting like a standalone form, such as by
hiding its title bar.
--
Rob
a frame is just a form that uses your main form for example as the parent. |
the parent being the display surface.
with this, you can get the same out in a frame as your would with a
non-parent form. Title bar, enclosed client area etc..
the frames make it easier at design time to work with where as, it use
to be that one would need to set the parent of a secondary form to that
of the form they wished to see it on as a child control.
etc..
|
|
| Back to top |
|
 |
Eddy Fontaine Guest
|
Posted: Mon Jan 24, 2005 5:17 pm Post subject: Re: Newbie: What is the difference between a 'Form' & a 'Fra |
|
|
Thanks to all your inputs !
Cheers,
Eddy.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|