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
The following command compiles the showuid program:
cc −o showuid showuid.c −lMrm −lXm −lXt −lX11
To display a UID file, use the following command:
showuid −root form hello_world.uid
The command−line options tell the command to open a description file named hello_ world.uid and create the widget
hierarchy rooted at the widget named form. Mrm searches for the UID files specified on the command line using the
UIDPATH environment variable if it is set, or the default path described in Chapter 22. It is easy to run the command
on a file in the current directory, since the current directory is included in the default search path. Remember that you
can also specify an absolute path to a UID file.
We recommend that you use the showuid program for trying out our examples as well as experimenting on your own.
In addition, the program is an excellent starting point for your own Mrm programs. The basic Mrm framework is
already in place. You only need to add the callbacks that implement your application's functionality and provide an
array of UID files, instead of taking them from the command line.
25.2 Defining and Creating Widgets
As you know, the main purpose of a UIL module is to define the widgets of a user interface. We mentioned earlier
that widget definitions always occur in an object section of a UIL module, which begins with the keyword object
followed by one or more widget definitions. The complete ...
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