home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / Libraries / Handler / c / DragFinish < prev    next >
Encoding:
Text File  |  1994-05-22  |  671 b   |  23 lines

  1. #include "Wimp.h"
  2. #include "Drag.h"
  3. #include "Handler.h"
  4.  
  5. /*  Attach this handler to Drag finish events while dragging, after
  6.  *  registering your handlers with Drag_SetHandlers (See drag.h)
  7.  *  You will probably want to attach the DragNULL handler as well.
  8.  *  If you're using the event_ sublibrary, then use Drag_Initialise to attach
  9.  *  these handlers for you.
  10.  */
  11.  
  12. extern BOOL Handler_DragFinish(event_pollblock *event, void *reference)
  13. {
  14.   if (drag_currentcomplete != NULL)
  15.     drag_currentcomplete(drag_currentuserdata);
  16.  
  17.   drag_currentuserdata = NULL;  /* Disable handlers again */
  18.   drag_currentupdate   = NULL;
  19.   drag_currentcomplete = NULL;
  20.  
  21.   return(FALSE);
  22. }
  23.