Skip to Content
Volume 6A: Motif Programming Manual
book

Volume 6A: Motif Programming Manual

by David Brennan, Dan Heller, Paula Ferguson
September 1993
Intermediate to advanced
1014 pages
28h 26m
English
O'Reilly Media, Inc.
Content preview from Volume 6A: Motif Programming Manual
and place the MessageBox in it or use a Motif convenience routine that creates both the shell and its dialog widget
child.
The Motif toolkit uses the DialogShell widget class as the parent for all of the predefined Motif dialogs. In this
context, a MessageBox widget combined with a DialogShell widget creates what the Motif toolkit calls a
MessageDialog. A careful look at terminology can help you to distinguish between actual widget class and Motif
compound objects. The name of the actual widget class ends in Box, while the name of the compound object made up
of the widget and a DialogShell ends in Dialog. For example, the convenience routine XmCreateMessageBox()
creates a MessageBox widget, which you need to place inside of a DialogShell yourself. Alternatively,
XmCreateMessageDialog() creates a MessageDialog composed of a MessageBox and a DialogShell.
Another point about terminology involves the commonly−used term dialog box. When we say dialog box, we are
referring to a compound object composed of a DialogShell and a dialog widget, not the dialog widget alone. This
terminology can be confusing, since the Motif toolkit also provides widget classes that end in box.
One subtlety in the use of MessageBox and SelectionBox widgets is that certain types of behavior depend on whether
or not the widget is a direct child of a DialogShell. For example, the Motif Style Guide says that clicking on the OK
button in the action area of a MessageDialog invokes the action of the dialog and then dismisses ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Volume 7A: XView Programming Manual

Volume 7A: XView Programming Manual

Dan Heller

Publisher Resources

ISBN: 9780596000431