First Edition (October 1997)
Trademarks
Preface
Chapter 1. Introduction
The X Window System
Xlib, Xt, and Motif
Widget Classes and Hierarchy
Header Files and Libraries
Chapter 2. The Motif Programming Model
A User-Centered Model
Separating Interface from Application
Building Blocks: Primitive Widgets and Gadgets
Managers
Shells
Applications, Top-Level Widgets, and Dialogs
Resources: User and Program Customization
Handling Input and Output
Chapter 3. Structure of a Motif Program
Including Header Files
Initializing the Intrinsics
Creating Widgets
Adding Callback Procedures
Making Widgets Visible
Entering the Event Loop
Writing Threaded Applications
Chapter 4. Structure of a Program Using UIL and MRM
Structure of a UIL Module
Structure of a Program Using MRM
Chapter 5. Basic Controls
Core, RectObj, XmPrimitive, and XmGadget Classes
Labels, Buttons, and Separators
ScrollBar
Scale
List
Text and TextField
Chapter 6. Menus and Options
Menu Components: Buttons, RowColumn, MenuShell
MenuBar
PopupMenu
PulldownMenu
OptionMenu
RadioBox and CheckBox
TearOffMenus
ComboBox
SpinBox
SimpleSpinBox
Chapter 7. Dialogs
BulletinBoard and DialogShell
Making a Selection: SelectionBox
Choosing a Pathname: FileSelectionBox
Command
MessageBox
Form
Chapter 8. Scrolling, Panes, Frames, Containers, and Notebooks
ScrolledWindow
Automatic Scrolling
Application-Defined Scrolling
MainWindow
Container
Notebook
Frame
PanedWindow
Chapter 9. Compound Strings
The Structure of a Compound String
Renditions
Horizontal Tabs
Parse Tables
Compound Strings in UIL
Chapter 10. Text
Text and TextField
Data Transfer in Text
Text Editing and Callbacks
Text Resources and Geometry
Convenience Routines
ScrolledText
Storing Text in a File
Sharing Text Sources
Chapter 11. Internationalization
Issues in Internationalized Applications
Localizing Applications
Layout Direction
Internationalization and Text Input
Compound Strings and Compound Text
Chapter 12. Color and Pixmaps
Default Colors and Pixmaps
Application-Defined Color Generation
Colormaps
Using Pixmaps
Chapter 13. Input, Focus, and Keyboard Navigation
Focus Models
Controlling Keyboard Navigation
Translations and Actions
Mnemonics and Accelerators
Event Handlers
Guidelines for Grabs
Chapter 14. Managing Geometry
Shells and Their Children
Manager Widgets and Their Children
Managing Geometry Using RowColumn
Managing Geometry Using BulletinBoard and DrawingArea
Managing Geometry Using Form
Chapter 15. Graphics and Text in a DrawingArea
DrawingArea: A General-Purpose Widget
Event Handling and Callbacks
Using a DrawingArea in a ScrolledWindow
Using a DrawingArea for Graphics
DrawingArea and Advanced Text Editing
Chapter 16. Data Transfer with UTM
What is UTM?
Why Use UTM?
Ideas For Applications
Implementation Overview
Case Study: Adding an Extra Target to XmText
Chapter 17. Drag and Drop
User Overview of Drag and Drop
Application Programmer's Overview of Drag and Drop
Drag and Drop Protocols
Drop Receiver Responsibilities for Dragging
Drag Initiator Responsibilities for Dragging
Drop Receiver Responsibilities for Dropping
Drag Initiator Responsibilities for Dropping
Chapter 18. MWM and the ICCCM
Window Managers, ICCCM, and Shells
MWM Properties and Resources
Atom and Protocol Management
Chapter 19. Printing
The Printing APIs
Motif Widget Printing
Appendix A. The Motif Clipboard
Copying Data to the Clipboard
Retrieving Data from the Clipboard
Utility Routines
Appendix B. Data Transfer in the Motif Toolkit
Appendix C. Glossary