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

  1. #include "Wimp.h"
  2. #include "Drag.h"
  3. #include "Handler.h"
  4.  
  5. /*  Attach this handler to NULL events while dragging, after registering your
  6.  *  handlers with Drag_SetHandlers (See drag.h)
  7.  *  Note that this handler is of little use without also attaching the
  8.  *  DragFinish handler as well.
  9.  *  If you're using the event_ sublibrary, then use Drag_Initialise to attach
  10.  *  these handlers for you.
  11.  */
  12.  
  13. extern BOOL Handler_DragNULL(event_pollblock *event, void *reference)
  14. {
  15.   if (drag_currentupdate != NULL)
  16.     drag_currentupdate(drag_currentuserdata);
  17.  
  18.   return(FALSE);
  19. }
  20.