Skip to Content
Volume 7A: XView Programming Manual
book

Volume 7A: XView Programming Manual

by Dan Heller
October 1994
Intermediate to advanced
770 pages
22h 58m
English
O'Reilly Media, Inc.
Content preview from Volume 7A: XView Programming Manual
19
Drag and Drop
This chapter describes the XView packages that support drag and drop. Drag and drop
allows data to be moved within an application or between applications. Using drag and drop,
objects are selected, then moved or copied to a new location. The selected object is the drag
and drop source. Selecting the source is referred to as sourcing the drag. An area within the
source application or within another application receives the drop in a pre-registered drop-
site.
This chapter describes packages that are new for XView Version 3. The function
xv_decode_drop() that supports dragging and dropping is now obsolete. Note that
xv_decode_drop() will not work correctly once an application is compiled for V3. The
function is still provided for backwards compatibility for XView Version 2 programs.
Many OPEN LOOK applications use drag and drop operations. For example, an application
may allow text in a text subwindow to be sourced and copied or moved to a new location
within the text subwindow. Similarly, a File Manager’s file icon can be selected and dragged
to the Print Tool icon for printing. OPEN LOOK defines many uses for drag and drop, includ-
ing loading files into an application. Figure 19-1 shows a file being dragged into an editor
and Figure 19-2 shows the application loading the file (receiving the drop).
Drag and drop supports drop previewing where the drop-site image changes to show ...
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 6A: Motif Programming Manual

Volume 6A: Motif Programming Manual

David Brennan, Dan Heller, Paula Ferguson

Publisher Resources

ISBN: 9780937175873