Re: Supporting SDI & MDI
Sam Hunt <[email protected]> Fri, 04 Nov 2005 08:51:47 -0800
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
tomconlon7777777 wrote:
> Hi All,
>
> Does anyone have any tips on how to provide support within an app for
> either SDI OR MDI (according to individual user preference).
>
> The reason is that I have a leagacy MDI app that is now SDI and I'd
> like to offer users the option to stay on MDI if they want to.
>
> Thanks,
> Tom
>
tomconlon7777777:
I have been developing a MDI app for the past 8 mos and learned the
following:
1. The Delphi help files recommend against changing form style at runtime
2. At design time, you can change a form's form style from fsNormal to
fsMDIForm (main form) or to fsMDIChild with little consequence, however,
changing a fsMDIChild form back to a fsNormal form does not seem to work
well when you try to do a fNormalForm.showmodal.
Also...
I have experimented with multiple fsNormal forms in a SDI app and
discovered that you "can" create multiple instances of such forms and
they seem to work fine, independently and when retrieving (global)
vars/values from the main form. However, I have not experimented far
enough to learn how the main form would differentiate between these
multiple instances (presumeably by a win handle or caption property), or
how instances of the same form class would share/pass vars/values
between themselves.
My recommendation is to settle on either SDI or a MDI app. If you
don't, you may find yourself supporting two apps with little in common
besides their business rules.
Good luck.
Sam Hunt
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Delphi-JEDI/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/