Μενού

Τα μενού παρουσιάζουν στο χρήστη ολόκληρη την περιοχή των εντολών ενός παραθύρου, και συχνά ένα υποσύβολο των προτιμήσεών του. Κατά τη σχεδίαση μίας νέας εφαρμογής, τοποθετήσει τα πιο κοινά στοιχεία του μενού στις ίδιες τοποθεσίες όπως εμφανίζονται σε άλλες εφαρμογές, επιεδή έτσι θα είναι πιο εύκολο για το χρήστη να τα θυμάται.

In most applications, only primary windows should have a menubar. Utility windows and dialogs should be simple enough that their functions can be provided by controls such as buttons placed within the window.

Ενίοτε, παράλοα αυτά, ένα παράθυρο ή ένας διάλογος επιλογών είναι τόσο σύνθετος που θα υπάρχουν πάρα πολύ έλεγχοι σαν αυτούς. Στην περίπτωση αυτή, ενδεχομένως να χρησιμοποιήσετε μία γραμμή μενού που παρέχει ότι:

  • τα μενού που ακολουθούν την ίδια τυπική διάταξη όπως περιγράφηκε στο Ενότητα 4.4 ― Standard Menus
  • το παράθυρο που δεν περιλαμβάνει μία περιοχή κουμπιού διαλόγου ή κανένα κουμπί δεν το απορρίπτει, όπως τα κουμπιά Εντάξει, Κλείσιμο ή Ακύρωση. Τοποθετήστε αυτές τις εντολές στο μενού Αρχείο ή σε κάποιο παρόμοιο μενού.
Κατευθυντήριες γραμμές
  • Label menu items with verbs for commands and adjectives for settings, according to the rules in Ενότητα 8.3.2 ― Κεφαλαιοποίηση.
  • Make a menu item insensitive when its command is unavailable. For example, the Edit ▸ Copy item, which issues the command to copy selected data to the clipboard, should not be active when there is no data selected.
  • Provide an access key for every menu item. You may use the same access key on different menus in your application, but avoid duplicating access keys on the same menu. Note that unlike other controls, once a menu is displayed, its access keys may be used by just typing the letter; it is not necessary to press the Alt key at the same time.
  • Design your menu structure to avoid more than one level of submenus. Deep menu hierarchies are harder to memorize and physically difficult to navigate.
  • Do not have menus with less than three items on them (except the standard Help menu, which has only two items by default). If you have a submenu with fewer than three items on it, move them into their parent menu. If you have a top-level menu with fewer than three items on it, find another suitable menu to add them to, or find suitable items from other menus to add to it.