E McElroy said:
Ctrl+F4 works the same way on my machine as Office Button followed by
Close.
As you described, if there is more than one Word window, it closes the
current document and its window. If there is only one Word window, it
closes
only the document and waits for further orders. Why was it done this way?
I
would guess that the programmer who implemented the Close option of the
Office menu thought he was helping you out.
Perhaps, but Word has always worked this way. If you use the Close command
then it only closes the document, even if it's the last document open. I
know many would be frustrated if they closed the last document and Word shut
down too. I know this because of the complaints about how the Close (x in
the upper right corner) button currently functions. Once you click the Close
(x) button on the last document then you also exit Word.
If he had only closed the
document, then getting rid of each additional Word window would require
that
the user know about closing the window with the close button in the upper
right of the window. Less sophisticated users will probably be relying on
the
Close menu which faces them with a quandary about how to remove the window
itself if they don't plan to use it for another document.
That's what the Exit Word command is for. ;-) Actually, most programs behave
this way so I'd say most aren't confused by the behavior.
There are obviously many ways to program the Close button. The programmer
picked one that's not unreasonable and may have reflected either some user
test studies or the well-known software engineering practice of flipping a
coin when faced with one of several good alternatives.
Well, the Close command under the Office Button issues the CloseWindow
command and the Close (x) button in the upperr right corner uses another.
This is the same functionality used in some of the previous versions. I
suspect what it boils down to is the difference in how a Single Document
Interface (SDI) and a Multiple Document Interface (MDI) works. Word 97 and
previous versions used a MDI, in which multiple documents shared the same
interface (menus and toolbars) and there were two sets of controls in the
upper right corner. The top set for the application and the lower set for
the document. When they switched to SDI, in Word 2000, each open Word
document had its own menu bar and toolbars (or Ribbon for Word 2007) and
each has its own set of controls in the upper right corner. They all work
independently of each other and are not linked.
An easy way to see this is if you open two Word documents, make sure both
are maximized, and then click the Restore command for one of the documents.
Only the Word document you restored displays in a restored window. The other
remains maximized. You can also set focus to different tabs on the Ribbon in
each document window.
Now, Excel still uses a Multiple Document interface and mimics SDI. You'll
see two close buttons in the upper right corner, one for the workbook and
one for the application. Each open workbook shares the same Ribbon (or menu
bar and toolbars for previous versions). If you try the same example, open
two Excel workbooks and restore the workbook window, you won't see the same
behavior as you did in Word. Both workbooks will be restored. Also note you
cannot set focus to different tabs on the Ribbon in the workbook windows,
the active tab will display in both.
I've developed both SDI and MDI applications and what they used in Word is
indeed the most efficient and most reliable - even if I personally don't
like it the behavior. ;-) (What I still haven't understood is why they
didn't use SDI from the beginning - it's actually easier to program.
Although that could depended on the programming language...)
Aa for the switching behavior, each Word window is a schedulable thread
and
when that window (thread) is closed, Windows displays the next most
recently
viewed thread. Sometimes that will be another Word application and
sometimes
not - it depends on what window you viewed before going to the Word
document
that you closed. This is simply the way Windows works.
I see that you understood the question better than I did initally.
--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email cannot be acknowledged.
~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP
Coauthor of Word 2007 Inside Out:
http://www.microsoft.com/MSPress/books/9801.aspx#AboutTheBook
Word FAQ:
http://mvps.org/word
TechTrax eZine:
http://mousetrax.com/techtrax/
MVP FAQ site:
http://mvps.org/