advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DragDrop Event Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 SUB Form_DragDrop (Source AS CONTROL, X AS SINGLE, Y AS SINGLE)
 SUB ctlname_DragDrop ([Index AS INTEGER,] Source AS CONTROL, X AS SINGLE,
                        Y AS SINGLE)
 
 Usage Notes
   ■ Use a DragDrop event procedure to prescribe what happens after a drag
     operation is complete. For example, you can move the Source control to
     a new location or copy a file from one location to another.
 
   ■ When multiple controls can potentially be used as the Source argument,
     use the TYPEOF keyword with the IF statement to determine the type of
     the source control. Set and use the control's Tag property to uniquely
     identify a control, then write a DragDrop event procedure accordingly.
     See: IF TYPEOF Statement  Tag Property
 
   ■ Use the DragMode property and the DRAG method to specify the way
     dragging is initiated. Once dragging has been initiated, you can handle
     events that precede a DragDrop event with a DragOver event procedure.
     See: DRAG Method  DragMode Property  DragOver Event