ObjectDCL Banner

OnDragnDropFromControl Event

Description

Indicates the user has just dragged and dropped from another control to this control.

Parameters

sProjectFile
String identifying the project as it was passed in LoadProject.
sDialogName
String identifying the dialog by name.
sControlName
String identifying the control by name.
Point
Point describing the mouse coordinates where the drop ended on the control.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnDragnDropFromControl 
                 (sProjectName [as String] sDialogName [as String] sControlName [as String] Point [as Point] /)
     
)

Applies For

BlockList, BlockView, DwgList, DwgPreview, GraphicButton, Grid (Hatch), Label, ListBox, ListView, PictureBox, SlideView, TextBox, TextButton, TreeControl.

Example

CopyCode imageCopy Code
; React to the drag-and-drop operation ending in the control originating from
; another ObjectDCL control
(defun c:MyForm_MyControl_OnDragnDropFromControl
                 (sProjectName sDialogName sControlName Point /)
     (princ "OnDragnDropFromControl(")
     (princ sProjectName)
     (princ ", ")
     (princ sDialogName)
     (princ ", ")
     (princ sControlName)
     (princ ", ")
     (princ Point)
     (princ ")\n")
)

See Also

OnDragnDropBegin, OnDragnDropFromOther, OnDragnDropToAutoCAD