Property : Drag Function
Page Status: Beta
Contents |
[edit] Description
Use the Drag Function property to assign a function interface for the purpose of overriding the default drag-and-drop functionality which is to simply copy or move the dropped data element to a destination control.
Important You must also assign the same function interface to the function you want to call, using the function's Interface List property.
[edit] Function Signature
When you create the function you want to call, you must add the following arguments in the order given.
| Arg | Dir | Type | Name | Description |
|---|---|---|---|---|
| 1st | [IN] | DragDrop | Drag Drop Object | Describes the source and destination of the dragged-and-dropped data element, together with many other details about the element. |
Your function is not called until the end user drops the dragged object onto a destination control.
The drop machinery looks for a drop handler in the following order:
- On the parent object of the destination field.
- On the root object of the destination control.
- If there is a linked field on the destination field, the linked field's parent.
- If there is a linked field on the destination field, the linked object that owns the linked field.
- Destination parent object, as defined in the DragDropObject
- Top level control that owns the destination control.
- Default collection machinery.
[edit] Property Editor Location
Interface Tab
[edit] Data Type
[edit] Default Values
| Control | Default Value |
|---|---|
| All Visual Controls | <not set> |



