BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: MDI Alternative for multiple forms application

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Kurt Barthelmess
Guest





PostPosted: Mon Jul 28, 2003 1:19 pm    Post subject: Re: MDI Alternative for multiple forms application Reply with quote



"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





PostPosted: Tue Jul 29, 2003 1:47 am    Post subject: Re: MDI Alternative for multiple forms application Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.