Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Примеры брендбуков / apple_osx-aqua-human-interface.pdf
Скачиваний:
17
Добавлен:
16.02.2016
Размер:
8.01 Mб
Скачать

C H A P T E R 7

Controls

Command Pop-Down Menus

A command pop-down menu is similar to a pull-down menu, but it appears in a window rather than in the menu bar. Use of this control is limited to cases where the window is shared among multiple applications and the menu contains commands that affect the window’s contents. For example, the Colors utility window, which can be used in any application, contains a List menu with commands that can be used to change the contents of the Colors window itself. Each application that uses the Colors window doesn’t have to populate a menu with these commands.

Cocoa developers can create a command pop-down menu with the NSPopUpButton class. Carbon developers can mimic the appearance and behavior with a bevel button.

Figure 7-9 A command pop-down menu

Command pop-down menus should contain between 3 and 12 commands. A closed command menu always displays the same text, which acts as the menu title.

Command Pop-Down Menu Specifications

The specifications for command pop-down menus are the same as those for pop-up menus (see “Pop-Up Menu Specifications” (page 126)).

Control Behavior and Appearance

127

Apple Computer, Inc. June 2002

Соседние файлы в папке Примеры брендбуков