Allan Day aday@gnome.org Calum Benson Adam Elman Seth Nickell Colin Robertson Christian Kirbach christian.kirbach@gmail.com 2014 Mario Blättermann mario.blaettermann@gmail.com 2016 Menüleisten

Eine Menüleiste enthält eine Aufreihung von Auswahlmenüs. Sie befindet sich üblicherweise am oberen Rand eines primären Fenster, unterhalb von dessen Titelleiste.

Anwendungsfälle

Menu bars increase the vertical footprint of an application’s user interface, introduce a large number of disclosure points, and function as a fixed set of inflexible options. For these reasons, header bars and header bar menus are generally recommended over menu bars, along with other design patterns for exposing controls on demand, such as selection mode, action bars, and popovers.

At the same time, it can be appropriate for complex applications that already include a menu bar to retain it. Additionally, some platforms also incorporate space for a menu bar in their user environment, and a menu model can be desirable for cross-platform integration purposes.

Standardmenüs

This section details the most common menus and menu items in a menu bar. For details on the standard items to include in each of these menus, see keyboard input.

File

Commands that operate on the current document or content item as a whole. It is the left-most item in the menubar because of its importance and frequency of use, and because it is a relevant menu in many applications.

Falls Ihre Anwendung nicht dateibasiert arbeitet, benennen Sie dieses Menü anhand des Objekttyps um, den es darstellt. Beispielsweise könnte ein Musikwiedergabeprogramm ein Music- anstelle eines File-Menüs haben.

Edit

Das Edit-Menü enthält Einträge mit Bezug auf die Bearbeitung eines Dokuments, wie Aktionen mit der Zwischenablage, Suchen und Ersetzen sowie Einfügen von Objekten.

View

Includes items that affect the user’s view, such as of the current document or page, or how items are presented for browsing. Do not place any items on the View menu that affect content items.

Insert

Lists the types of objects that can be inserted into the current document, such as images, links or page breaks. Only provide this menu if you have more than about six types of object that can be inserted, otherwise place individual items for each type on the Edit menu.

Format

Includes commands to change the visual appearance of the document. For example, changing the font, color, or line spacing of a text selection.

The difference between these commands and those on the View menu is that changes made with Format commands are persistent and saved as part of the document.

Die Einträge im Format-Menü sind sehr anwendungsspezifisch.

Bookmarks

Provide a Bookmarks menu in any application that allows the user to browse files and folders, help documents, web pages or any other large information space.

Go

A Go menu provides commands for quickly navigating around a document or collection of documents, or an information space such as a directory structure or the web.

Der Inhalt des Menüs hängt von der Art der Anwendung ab.

Windows

Commands that apply to all of the application’s open windows. You may also label this menu Documents, Buffers, or similar according to the type of document handled by your application.

The last items on this menu are a numbered list of the application’s primary windows, for example 1shoppinglist.abw. Selecting one of these items raises the corresponding window.

Allgemeine Richtlinien

Die Menüleiste ist normalerweise ständig sichtbar und mit der Tastatur kann immer darauf zugegriffen werden. Daher sollten Sie alle in Ihrer Anwendung verfügbaren Befehle auch in der Menüleiste verfügbar machen. (Diese Richtlinie bezieht sich nur auf Menüleisten – andere Menüs sollten keine Funktionalität reproduzieren, die über andere Bedienelemente erreichbar sind.)

Treat application menus as part of the menu bar - it is not necessary to reproduce items from the application menu in other menus.

Do not disable menu titles. Allow the user to explore the menu, even though there might be no available items on it at that time.

Menu titles on a menubar are single words with their first letter capitalized. Do not use spaces in menu titles, as this makes them easily-mistaken for two separate menu titles. Do not use compound words (such as WindowOptions) or hyphens (such as Window-Options) to circumvent this guideline.

Bieten Sie besser keine Möglichkeit an, die Menüleiste zu verbergen, da dies unabsichtlich aktiviert werden könnte. Einige Benutzer könnten dann nicht mehr in der Lage sein herauszufinden, wie sie die Menüleiste wieder aktivieren können.

API-Referenz

GtkMenu

GtkMenuBar

GtkMenuItem

GtkRadioMenuItem

GtkCheckMenuItem

GtkSeparatorMenuItem