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
XmBLEND_ALL
XmBLEND_STATE_SOURCE
XmBLEND_JUST_SOURCE
XmBLEND_NONE
XmBLEND_ALL indicates that all three parts of the drag icon should be used, while XmBLEND_STATE_SOURCE
causes only the state and source icons to be used. We specify the value XmBLEND_JUST_SOURCE since we only
want the source icon to be used for the drag icon. XmBLEND_NONE means that the DragContext does not generate a
drag icon.
Another important set of resources are the XmN-exportTargets and XmN-numExportTargets resources.
These resources specify the data targets to which the drag source can convert the actual data. The
XmN-exportTargets resource contains a list of target atoms. If the file is a directory, we specify the
DIRECTORY target. Otherwise, we specify both the FILE_CONTENTS and FILE_NAME targets, which means that
the drag source can provide both a filename and the actual contents of the file to a drop site. In order for the drag to
succeed, another application must use at least one of these targets for a drop site so that the user has some place to
drop the data.
The XmN-dragOperations resource specifies all of the operations that are supported by the application. This
value is specified as a bitmask formed by combining the following possible values:
XmDROP_COPY
XmDROP_MOVE
XmDROP_LINK
XmDROP_NOOP
For the limited purpose of this application, we specify XmDROP_COPY because we only allow the user to copy the
contents of a file. A fully−functional file manager application would probably also support moving and copying ...
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