 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kurt Barthelmess Guest
|
Posted: Mon Jul 28, 2003 1:19 pm Post subject: Re: MDI Alternative for multiple forms application |
|
|
"Kongthap Thammachat" <jeud (AT) yahoo (DOT) com> wrote:
| Quote: | I'm working on a project using Delphi as development tool. Just like
general applications, there are multiple forms in my application. I'm
looking for an alternative techniques rather than using MDI because I would
like the user to focus on currently woking screen only, and don't want the
user to switch to any other screens until closing the current one. But I
still would like all of the child forms to share the same TMenu and TToolbar
across the entire application.
|
Your requirement that the user not be allowed to switch to another
screen would seem to make it necessary to use modal forms rather than
child forms. Let the child "inherit" from an earlier form the menu and
such. The main form should only be able to create new "children".
Good luck.
Kurt
|
|
| Back to top |
|
 |
Kongthap Thammachat Guest
|
Posted: Tue Jul 29, 2003 1:47 am Post subject: Re: MDI Alternative for multiple forms application |
|
|
Thanks to Kurn, Peter
Using TFrame is what I thought of, I have spent sometime to play around with
TFrame, unfortunately there is no OnCreate event in TFrame, please advise me
what to do, if I decide to use TFrame and I really have to have coding at
the time a TFrame is created.
Thanks to all.
"Peter Below (TeamB)" <100113.1101 (AT) compuXXserve (DOT) com> wrote
| Quote: | In article <3f24c8f5 (AT) newsgroups (DOT) borland.com>, Kongthap Thammachat wrote:
I'm working on a project using Delphi as development tool. Just like
general applications, there are multiple forms in my application. I'm
looking for an alternative techniques rather than using MDI because I
would
like the user to focus on currently woking screen only, and don't want
the
user to switch to any other screens until closing the current one. But
I
still would like all of the child forms to share the same TMenu and
TToolbar
across the entire application.
Use a client-aligned TPanel on your main form as container. Instead of
child
form use frames. You can now create an instance of a frame in code, set
its
Parent property to the panel, its Align to alClient, and presto: you have
something similar to a maximized MDI child. You can do the same with
forms, if
you set the forms Borderstyle to bsNone. But there is no real benefit in
using
forms instead of frames here.
When the user is done with the frame you can either hide or Free it.
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
|
|
|
| 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
|
|