logo       

Re: WIN32: Multiple Windows without MDI: msg#02959

lang.realbasic.user

Subject: Re: WIN32: Multiple Windows without MDI

unless you have a one window app, mdi is the standard windows way.
----- Original Message -----
Sent: Friday, January 30, 2004 10:51 AM
Subject: WIN32: Multiple Windows without MDI

Hi,

I'd like to re-write a couple of win32 applications that are currently built
with MDI to behave more like e.g. Internet Explorer. I'm wondering about the
best way to approach this.

First, I made a simple app where the window1 contains a button which does
this:

    dim w as window
    w=new window1
    w.show


This allows me to open multiple windows and each get's their own little tab
in the Taskbar. I can close them independently and the menu bar is shared.
So any dynamic menus update in all the windows. That's cool. But when I quit
the app from any window, all windows close. Which is NOT what I want.

Now, obviously this could be controlled in code where a 'QUIT' would be
restricted to closing the window that issued the call unless APP finds it
was the last window and thus gracefully quits.

The other solution would be to locate the application itself within code and
simply 'launch' it again when a 'new window' is requested. This appears to
be how IE and some other apps work. In that case then, each app runs as an
independent process, which would eliminate the need for fancy two-stepping
in code.

The problem I see with the latter is how to manage shared resources, e.g.
dynamic menus, such as Bookmarks for example.

Each of the above has some pros/cons and it's clear to me that this is
exactly what MDI is supposed to resolve. However, I just can't help it - I
find MDI totally ugly. I went with it for a few apps after I found out that
premiere apps such as Adobe Photoshop use it as well, [making them not more
attractive either]

The question is: It might just be my personal preference not using MDI, but
Windows user are probably used to it and it doesn't bother them at all.
Should I bother trying to avoid MDI? If the answer was yes, I'd really
appreciate some insight on the better approach using RB. I might well be
overlooking other critical issues that will impact my work if I move away
from MDI.

Thanks,
Juergen


 - - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise