Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ OlDrgAndDrp(3W) — Dell System V Release 4 Issue 2.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

OlGrabDragPointer(3W)

OlUngrabDragPointer(3W)



OlDragAndDrop(3W)                UNIX System V                OlDragAndDrop(3W)


                                  Dynamic Settings

NAME
       OlDragAndDrop

SYNOPSIS
      #include <OpenLook.h>
       ...
      extern void OlDragAndDrop(w, window, xPosition, yPosition)
      Widget     w;
      Window *   window;
      Position * xPosition;
      Position * yPosition;

DESCRIPTION
      The OlDragAndDrop function is used to monitor a direct manipulation
      operation; returning, when the operation is completed, the dropwindow
      and the x and y coordinates corresponding to the location of the drop.
      These return values will reflect the highest (in the stacking order)
      window located under the pointer at the time of the button release.

SEE ALSO
      OlGrabDragPointer(3W), OlUngrabDragPointer(3W)

EXAMPLE
      The following code provides a sample of the use of the facilities:
      OlLookupInputEvent, OlDetermineMouseAction, OlGrabDragPointer,
      OlDragAndDrop, OlUngrabDragPointer, and OlReplayBtnEvent

      static void ButtonConsumeCB (w, client_data, call_data)
            Widget      w;
            XtPointer   client_data;
            XtPointer   call_data;
      {
            Window   drop_window;
            Position x;
            Position y;
            OlVirtualEvent ve;

            ve = (OlVirtualEvent) call_data

            switch (ve->virtual_name) {
            case OL_SELECT:
                  OlGrabDragPointer(widget, OlGetMoveCursor(XtScreen(widget),
                                  None);
                  OlDragAndDrop(widget, &drop_window, &x, &y);
                  DropOn(widget, drop_window, x, y, ....);
                  OlUngrabDragPointer(widget);
                  break;
            }
            . . .
      }


10/89                                                                    Page 1







OlDragAndDrop(3W)                UNIX System V                OlDragAndDrop(3W)
























































Page 2                                                                    10/89





Typewritten Software • bear@typewritten.org • Edmonds, WA 98026