NAME
Close (Choice) — Reference
Description
Close is an action choice that removes a window and all of
the windows dependent on it from a screen.
When to Use
- Required
Provide the Close choice in the window menu of every
window.
- Recommended
In a secondary window, use the Close choice as a
push button instead of Cancel if Close would be more appropriate
or less ambiguous.
- Recommended
Provide a Close choice in the File menu if the window
can be closed independently of other primary windows.
Guidelines
- Recommended
Provide the Close choice as a push button in a secondary
window if the window is used only to present status information
to the user.
- Recommended
If the effect of activating a choice or choices
in a secondary window is irreversible, then the Close choice can
replace the Cancel choice after the first irreversible action.
- Recommended
When closing a window, save its state (including
its position, size, dependent secondary windows, and associated
messages that are currently displayed) so that they can be restored
if the window is opened at a later time.
Behavior
- Required
When a user activates the Close choice for the last
primary window displayed for an application, remove all dependent
secondary windows and exit from the application.
- Required
When a user activates the Close choice for a window,
remove the window and any dependent secondary windows.
- Required
Use a Close push button to close an in-progress
message window without affecting the task in progress. Do not terminate
the task when a user presses the Close push button in an in-progress
message window.
Confirmation on Close
- Required
If information in a primary window could be lost
when the user activates the Close choice, display a warning message.
- Recommended
If information in a secondary window could be lost
when the user activates the Close choice, do not display a warning
message.
Essential Related Topics
For more information, see the Exit
(Choice), File
Menu, Push Button (Predefined),
and Window Menu reference
pages.
Supplemental Related Topics
For more information see the Menu Guidelines reference
page.