Skip to main content
  • 39 Accesses

Overview

Menus provide the user of a Motif program with the ability to control the operation of that program in a “point and click” manner. They are the preferred method of program control: unobtrusive when not in use, they allow the user to quickly choose from a list of alternate actions.

Motif provides four types of menus. The menu bar is positioned at the top of a standard Motif program: it provides an always-accessible method of controlling the program’s major functions; these functions are divided into named topics. Attached to the menu bar, pull-down menus provide a list of functions “sub-” associated each topic. Pop-up menus are used for context-dependent control, and are accessed by means other than the menu bar. Finally, option menus are used in dialog boxes and other context -dependent situations where the program needs to provide a menu that displays its current choice.

Menus are implemented using the XmRowColumn widget class. The menu bar is a horizontal row-column, as is an option menu; pull-down and pop-up menus are vertically oriented. The menu bar can contain only cascade-button widgets (described below); menu panes may contain any type of child, although most programs use only labels, separators, and buttons.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1992 Springer-Verlag New York, Inc.

About this chapter

Cite this chapter

Gregory, K.D. (1992). Menus. In: Programming with Motif™. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-2954-4_12

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-2954-4_12

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-0-387-97877-2

  • Online ISBN: 978-1-4612-2954-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics