User Tools

Site Tools


menus.htm
Navigation:  User's Guide and Tutorials > Windows Design Issues >====== Menus ====== Previous pageReturn to chapter overviewNext page

Menus display the range of commands available for the user to execute. Windows users are accustomed to standard menus and commands, which appear in many different applications. If you use these same menus, new users may learn your application more easily, and the sense of familiarity will increase all users' confidence and productivity levels.

When designing additional, custom menus and commands, bear in mind that the model for GUI design is the ' Noun-Verb.' principle. Apple fancifully refers to this as 'Hey you'do this!'

In the 'Noun-Verb' model, the user points to something'for example, an on-screen object such as text. This is the noun. The model assumes that the next command action the user chooses will tell the application what to do to the noun. The action is the verb. If you word your menus and commands in a way that the menu - command is a short 'do this' sentence'such as:

Insert BLTTRIA.jpg Customer

View BLTTRIA.jpg? Transaction

List BLTTRIA.jpg Activity

Select BLTTRIA.jpg Current Group

'your menus will gain added clarity.

This guideline should not severely limit you. There are times when it is most appropriate to use a single menu item to initiate complicated instructions, such as bringing up a dialog box with many different preferences and options for the user to set. When doing so, add an ellipsis () following the last word of the menu command.

The following discusses the standard menu implementations recommended by Microsoft:

File Menu

Many database applications do not naturally lend themselves toward allowing the user to open and close external document files. In the simplest case, a database or databases open automatically with the application, and user editing is limited to editing individual rows. Clarion programmers may wish to limit commands on the file menu to those that affect the global operation of the application'Printer Setup and Exit, in the most extreme case. At the very minimum, your Clarion applications should have a File BLTTRIA.jpg Exit command: this is how users expect a Windows application to allow them to quit the program.

New or New… Creates a new file with a default name such as 'Untitled.' This is sometimes a problematical menu item when creating database applications. Unless your application allows the user to create a new database, or creates separate editable external files (such as text files) Clarion programmers may wish to drop this command.
Open Displays the File Open dialog, from the Windows common dialog library. Allows the user to open external files.
Save Saves the active document. For a new file, calls the Save As dialog.
Save As Displays the Save As dialog, from the Windows common dialog library.
Print or Print… Prints the active document, or leads to a dialog allowing the user to set print options.

The Print command can be an interesting one in a database application. Many times, a database application allows the user only to print pre-formatted reports.

Other 'docu-centric' Windows applications may simply go ahead and print the current document in its entirety'but a database application can hardly be expected to print a 30,000 record database as the default print preference.

One solution some popular applications use is to drop the print command entirely and provide a separate Report menu. This is a good solution for an application with a limited number of reports. Alternatively, an application with a limited number of reports might also use a cascading menu, attached to the File BLTTRIA.jpg Print command.

For an application with a large number of pre-formatted reports, one solution might be to present a list box in a dialog window when the user selects the File Print command.

Print Setup Displays the Printer Setup dialog, from the Windows common dialog library. This dialog allows the user to change the active printer and/or specify settings for the selected printer.
Exit Closes all application windows and terminates the application. If don't have a File menu in your application, place your Exit command on the leftmost application menu, as the last command on the menu.

Edit Menu

The Edit menu usually provides commands for reversing the user's last action, plus the clipboard editing commands: cut, copy and paste.

Undo The Undo command should reverse the user's last action. It must always be the first command on the Edit menu, if your application supports undo.

Clearly, database programs present special problems for Undo. In general, Windows applications disable the Undo command after a file operation, such as when a File Save command saves an edited document to disk. A database application may easily present a situation in which it writes data to disk every few seconds when, for example, a user enters a group of new records.

Cut Transfers a selected object to the clipboard and deletes it from the field.
Copy Places a copy of a selected object in the clipboard.
Paste Places a copy of an object previously placed in the clipboard into the current field.

Clarion automatically enables clipboard support for Cut, Copy and Paste when in an edit box. The default accelerator keys for these actions are CTRL+X, CTRL+C and CTRL+V respectively.

View Menu

Microsoft defines the View menu as optional, and states that it includes commands for changing how the program presents the data to the user, without changing any of the data. As such, it presents a natural means for a database application to allow different browse options on a single database.

The View menu may also present options for displaying various interface elements such as toolbars, status bars, and other special controls that are part of the application window. There are no specific command text suggestions for the View menu.

Window Menu

This is an optional menu. If you choose to support the Multiple Document Interface (MDI) in your application, the Window menu allows the user to manipulate entire child windows.

The commands for this menu are flexible. Common commands include:

Tile Arranges child windows end-to-end, so that all are visible.
Cascade Arranges child windows in an overlapping fashion, so that the title bar of each is visible.

The Window menu may also contain a numbered list of up to nine open child windows. A number should precede each child window name. When the user chooses a window from the list, the window should receive the focus.

Help Menu

The Help menu provides the user with access to the Windows Help system. It should always be the last menu on the right. The Help menu usually contains the following commands:

Contents Loads the Windows Help system, then opens the external Help file to the main contents page.
Search for Help On This loads the external Help file, then automatically opens the Search dialog. This allows the user to type in a word; if the word appears as a topic title, the Help system jumps to the title.
How to Use Help This opens the Windows Help system, and displays the instructions for using it. The file WINHELP.HLP, which Windows automatically installs, contains the instructions.

Accelerator Keys

A number of commands have gained standard accelerator (or alert, or hot) keys. When creating your application, should you use any of the following commands, we recommend you use the following keys:

Command Accelerator
File BLTTRIA.jpg New CTRL+N
File BLTTRIA.jpg Open CTRL+O
File BLTTRIA.jpg Save CTRL+S, or SHIFT+F12
File BLTTRIA.jpg Exit ALT+F4
Edit BLTTRIA.jpg Undo CTRL+Z
Edit BLTTRIA.jpg Cut CTRL+X
Edit BLTTRIA.jpg Copy CTRL+C
Edit BLTTRIA.jpg Paste CTRL+V
Edit BLTTRIA.jpg Select All CTRL+A

Next: Color

menus.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1